IT Q&A

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Odoo logfile structure

Avatar
Corpuz Angel
An entry in the odoo logfile has the following structure:

%(asctime)s %(pid)s %(levelname)s %(dbname)s %(name)s: %(message)s -
Odoo11 introduced a @profile decorator that adds three numbers to this line after the final dash, they are, respectively, number of queries sent, the delay time and the execution time.
The following table shows an example log line broken down in the relevant sections:

Original log entry
2020-09-21 15:30:46,247 6 INFO bplus-collaudo-1345691 Werkzeug: 109.234.62.132 - - [21/Sep/2020 15:30:46] "POST /web/dataset/call_kw/res.partner/read HTTP/1.0" 200 - 51 0.058 0.068
Breakdown:

Timestamp pid Log level dbname Module name: IP message Result - # Queries Delay (s) Query Time (s)
2020-09-21 15:30:46,247 6 INFO bplus-collaudo-1345691 Werkzeug: 109.234.62.132 - - [21/Sep/2020 15:30:46] "POST /web/dataset/call_kw/res.partner/read HTTP/1.0" 200 - 51 0.058 0.068

Avatar
Abbandona