Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
910 Widoki

Hi,

I have a self hosted version of Odoo with multiple website and multiple domain. I changed the logging level to get information about each GET page. But it miss the original domain name that was queried in the log to know which website was actually visited.


Current log line:

2023-06-05 15:50:13,348 1 INFO test werkzeug: 172.21.0.1 - - [05/Jun/2023 15:50:13] "GET /contactus HTTP/1.1" 200 - 25 0.013 0.023


I'm looking to add the domain name to this log line: examples.com

That could be either the website_id, or the Host value from the HTTP request.


2023-06-05 15:50:13,348 1 INFO test examples.com werkzeug: 172.21.0.1 - - [05/Jun/2023 15:50:13] "GET /contactus HTTP/1.1" 200 - 25 0.013 0.023



Awatar
Odrzuć