mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-24 02:08:36 +00:00
[FIX] monitoring_log_requests: response_status_code
the response status code would not be properly logged -> fix the code
This commit is contained in:
@@ -62,8 +62,8 @@ class IrHttp(models.AbstractModel):
|
||||
# response things
|
||||
"response_status_code": None,
|
||||
}
|
||||
if hasattr(request, "status_code"):
|
||||
info["status_code"] = response.status_code
|
||||
if hasattr(response, "status_code"):
|
||||
info["response_status_code"] = response.status_code
|
||||
if hasattr(request, "session"):
|
||||
info.update(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user