Browse Source

[UPD] README.rst

12.0-mig-module_prototyper_last
OCA-git-bot 5 years ago
parent
commit
a35556a283
  1. 7
      slow_statement_logger/README.rst
  2. 6
      slow_statement_logger/static/description/index.html

7
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 Add a ``log_min_duration_statement`` entry in the ``options`` section of your
Odoo configuration file. Statements running at least this number of 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 logged. ``-1`` disables this logging. You can also set an environment variable
``ODOO_LOG_MIN_DURATION_STATEMENT`` which will have priority over the ``ODOO_LOG_MIN_DURATION_STATEMENT`` which will have priority over the
configuration file entry. 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 Bug Tracker
=========== ===========

6
slow_statement_logger/static/description/index.html

@ -395,11 +395,13 @@ to Odoo’s <tt class="docutils literal"><span class="pre">--log-level=debug_sql
<tt class="docutils literal">server_wide_modules</tt> configuration file entry.</p> <tt class="docutils literal">server_wide_modules</tt> configuration file entry.</p>
<p>Add a <tt class="docutils literal">log_min_duration_statement</tt> entry in the <tt class="docutils literal">options</tt> section of your <p>Add a <tt class="docutils literal">log_min_duration_statement</tt> entry in the <tt class="docutils literal">options</tt> section of your
Odoo configuration file. Statements running at least this number of Odoo configuration file. Statements running at least this number of
milliseconds will be logged with a <em>warning</em> level in the
<tt class="docutils literal">odoo.addons.slow_statement_logger</tt> handler. <tt class="docutils literal">0</tt> means all statements will be
milliseconds will be logged with a <em>debug</em> level in the
<tt class="docutils literal">odoo.addons.slow_statement_logger</tt> logger. <tt class="docutils literal">0</tt> means all statements will be
logged. <tt class="docutils literal"><span class="pre">-1</span></tt> disables this logging. You can also set an environment variable logged. <tt class="docutils literal"><span class="pre">-1</span></tt> disables this logging. You can also set an environment variable
<tt class="docutils literal">ODOO_LOG_MIN_DURATION_STATEMENT</tt> which will have priority over the <tt class="docutils literal">ODOO_LOG_MIN_DURATION_STATEMENT</tt> which will have priority over the
configuration file entry.</p> configuration file entry.</p>
<p>Add <tt class="docutils literal">odoo.addons.slow_statement_logger:DEBUG</tt> in your <tt class="docutils literal">log_handler</tt>
configuration file entry or <tt class="docutils literal"><span class="pre">--log-handler</span></tt> command line option.</p>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1> <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>

Loading…
Cancel
Save