mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
BSRD-286: MIG V13 monitoring_log_requests
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
# Copyright 2016-2018 Camptocamp SA
|
||||
# Copyright 2016-2019 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
|
||||
{'name': 'Monitoring: Requests Logging',
|
||||
'version': '12.0.2.0.0',
|
||||
'version': '13.0.1.0.0',
|
||||
'author': 'Camptocamp,Numigi,Odoo Community Association (OCA)',
|
||||
'license': 'AGPL-3',
|
||||
'category': 'category',
|
||||
'depends': ['base', 'web'],
|
||||
'website': 'http://www.camptocamp.com',
|
||||
'data': [],
|
||||
'installable': False,
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2016-2018 Camptocamp SA
|
||||
# Copyright 2016-2019 Camptocamp SA
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
|
||||
|
||||
import json
|
||||
@@ -19,7 +19,7 @@ class IrHttp(models.AbstractModel):
|
||||
@classmethod
|
||||
def _dispatch(cls):
|
||||
begin = time.time()
|
||||
response = super(IrHttp, cls)._dispatch()
|
||||
response = super()._dispatch()
|
||||
end = time.time()
|
||||
if (not cls._monitoring_blacklist(http_request) and
|
||||
cls._monitoring_filter(http_request)):
|
||||
|
||||
Reference in New Issue
Block a user