From 453dffb5845701dbc6fe499bf2631ce6080b67ec Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Thu, 4 Jan 2024 16:04:17 +0100 Subject: [PATCH] [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@98cb4719dbe90db. Fixes: #7210 [^1]: https://github.com/odoo/odoo/blob/b3b9b2b49ef90d30bcce1e27a4ba0b24f888170c/odoo/netsvc.py#L156 [^2]: https://github.com/odoo/odoo/blob/b3b9b2b49ef90d30bcce1e27a4ba0b24f888170c/odoo/netsvc.py#L198 [^3]: https://docs.python.org/3/library/logging.handlers.html#logging.StreamHandler closes odoo/documentation#7268 X-original-commit: c55e8f251a386c536786c3143b411dbafe2c1c54 Signed-off-by: Antoine Vandevenne (anv) Signed-off-by: Julien Castiaux (juc) --- content/developer/reference/cli.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/content/developer/reference/cli.rst b/content/developer/reference/cli.rst index e97a3e430..1f92e6a21 100644 --- a/content/developer/reference/cli.rst +++ b/content/developer/reference/cli.rst @@ -469,14 +469,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 - 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 `_ and will automatically be reopened when replaced