Allow tests to override "global" log_level (rebased) (#7340)

Co-authored-by: Ruaridh Williamson <ruaridh.williamson@flexciton.com>
This commit is contained in:
Bruno Oliveira
2020-06-08 22:05:46 -03:00
committed by GitHub
parent e78207c936
commit fcbaab8b0b
5 changed files with 109 additions and 3 deletions

View File

@@ -250,6 +250,9 @@ made in ``3.4`` after community feedback:
* Log levels are no longer changed unless explicitly requested by the :confval:`log_level` configuration
or ``--log-level`` command-line options. This allows users to configure logger objects themselves.
Setting :confval:`log_level` will set the level that is captured globally so if a specific test requires
a lower level than this, use the ``caplog.set_level()`` functionality otherwise that test will be prone to
failure.
* :ref:`Live Logs <live_logs>` is now disabled by default and can be enabled setting the
:confval:`log_cli` configuration option to ``true``. When enabled, the verbosity is increased so logging for each
test is visible.