[FIX] developer/reference/cli: log on stderr
Odoo is actually logging on sys.stderr and not sys.stdout[^1][^2][^3]. Remove passage about the workflows, the workflows were an OpenERP feature removed almost a decade ago in odoo/odoo@98cb4719db. Fixes: #7210 [^1]:b3b9b2b49e/odoo/netsvc.py (L156)
[^2]:b3b9b2b49e/odoo/netsvc.py (L198)
[^3]: https://docs.python.org/3/library/logging.handlers.html#logging.StreamHandler closes odoo/documentation#7256 X-original-commit:c55e8f251a
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
This commit is contained in:
parent
381c049b5d
commit
2687c6611a
@ -451,14 +451,13 @@ HTTP
|
||||
Logging
|
||||
~~~~~~~
|
||||
|
||||
By default, Odoo displays all logging of level_ ``info`` except for workflow
|
||||
logging (``warning`` only), and log output is sent to ``stdout``. Various
|
||||
options are available to redirect logging to other destinations and to
|
||||
customize the amount of logging output.
|
||||
By default, Odoo displays all logging of level_ ``INFO``, ``WARNING`` and ``ERROR``. All logs
|
||||
independently of the level are output on ``stderr``. Various options are available to redirect
|
||||
logging to other destinations and to customize the verbosity.
|
||||
|
||||
.. option:: --logfile <file>
|
||||
|
||||
sends logging output to the specified file instead of stdout. On Unix, the
|
||||
sends logging output to the specified file instead of ``stderr``. On Unix, the
|
||||
file `can be managed by external log rotation programs
|
||||
<https://docs.python.org/3/library/logging.handlers.html#watchedfilehandler>`_
|
||||
and will automatically be reopened when replaced
|
||||
|
Loading…
Reference in New Issue
Block a user