diff --git a/slow_statement_logger/README.rst b/slow_statement_logger/README.rst index 765b21218..5cd861e6b 100644 --- a/slow_statement_logger/README.rst +++ b/slow_statement_logger/README.rst @@ -47,12 +47,15 @@ Add ``slow_statement_logger`` to Odoo's ``--load`` command line option, or to th Add a ``log_min_duration_statement`` entry in the ``options`` section of your Odoo configuration file. Statements running at least this number of -milliseconds will be logged with a *warning* level in the -``odoo.addons.slow_statement_logger`` handler. ``0`` means all statements will be +milliseconds will be logged with a *debug* level in the +``odoo.addons.slow_statement_logger`` logger. ``0`` means all statements will be logged. ``-1`` disables this logging. You can also set an environment variable ``ODOO_LOG_MIN_DURATION_STATEMENT`` which will have priority over the configuration file entry. +Add ``odoo.addons.slow_statement_logger:DEBUG`` in your ``log_handler`` +configuration file entry or ``--log-handler`` command line option. + Bug Tracker =========== diff --git a/slow_statement_logger/static/description/index.html b/slow_statement_logger/static/description/index.html index f30759627..268e9e7cf 100644 --- a/slow_statement_logger/static/description/index.html +++ b/slow_statement_logger/static/description/index.html @@ -395,11 +395,13 @@ to Odoo’s --log-level=debug_sql server_wide_modules configuration file entry.

Add a log_min_duration_statement entry in the options section of your Odoo configuration file. Statements running at least this number of -milliseconds will be logged with a warning level in the -odoo.addons.slow_statement_logger handler. 0 means all statements will be +milliseconds will be logged with a debug level in the +odoo.addons.slow_statement_logger logger. 0 means all statements will be logged. -1 disables this logging. You can also set an environment variable ODOO_LOG_MIN_DURATION_STATEMENT which will have priority over the configuration file entry.

+

Add odoo.addons.slow_statement_logger:DEBUG in your log_handler +configuration file entry or --log-handler command line option.