From ece54b68d1010b3e0da3b2dd7666a3358e1c6d11 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Thu, 12 Feb 2015 19:29:14 +0100 Subject: [PATCH] log: Support -vvvv to not filter logs at all --- docs/changelog.rst | 4 ++++ mopidy/utils/log.py | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 413e2ca9..89090218 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -26,6 +26,10 @@ v0.20.0 (UNRELEASED) - Make the ``mopidy`` command print a friendly error message if the :mod:`gobject` Python module cannot be imported. (Fixes: :issue:`836`) +- Add support for repeating the :cmdoption:`-v ` argument four times + to set the log level for all loggers to the lowest possible value, including + log records at levels lover than ``DEBUG`` too. + **Configuration** - Add support for the log level value ``all`` to the loglevels configurations. diff --git a/mopidy/utils/log.py b/mopidy/utils/log.py index 79ec723c..3c7ee599 100644 --- a/mopidy/utils/log.py +++ b/mopidy/utils/log.py @@ -12,6 +12,7 @@ LOG_LEVELS = { 1: dict(root=logging.WARNING, mopidy=logging.DEBUG), 2: dict(root=logging.INFO, mopidy=logging.DEBUG), 3: dict(root=logging.DEBUG, mopidy=logging.DEBUG), + 4: dict(root=logging.NOTSET, mopidy=logging.NOTSET), } # Custom log level which has even lower priority than DEBUG