BSRD-286: MIG V13 monitoring_log_requests

This commit is contained in:
Tonow-c2c
2019-10-08 17:18:22 +02:00
parent 529ae1052f
commit 6a2d8748b9
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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,
}
+2 -2
View File
@@ -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)):