Merge pull request #94 from Tonow-c2c/BSRD-286_MIG-13.0_monitoring_log_requests

BSRD-286: MIG V13 monitoring_log_requests
This commit is contained in:
Tonow-c2c
2019-11-08 08:19:19 +01:00
committed by GitHub
co-authored by GitHub
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)):