You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
731 B

  1. Add ``slow_statement_logger`` to Odoo's ``--load`` command line option, or to the
  2. ``server_wide_modules`` configuration file entry.
  3. Add a ``log_min_duration_statement`` entry in the ``options`` section of your
  4. Odoo configuration file. Statements running at least this number of
  5. milliseconds will be logged with a *debug* level in the
  6. ``odoo.addons.slow_statement_logger`` logger. ``0`` means all statements will be
  7. logged. ``-1`` disables this logging. You can also set an environment variable
  8. ``ODOO_LOG_MIN_DURATION_STATEMENT`` which will have priority over the
  9. configuration file entry.
  10. Add ``odoo.addons.slow_statement_logger:DEBUG`` in your ``log_handler``
  11. configuration file entry or ``--log-handler`` command line option.