Commit a012f407 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

[scripts][main_cli] Add extra function to logger

This leads to a crash. Originally in, but forgot to move it in
parent 9ba9cecc
......@@ -8,6 +8,16 @@ from click_plugins import with_plugins
from .click_helper import verbosity_option
from ..config import Configuration
# defines our own logging level for extra information to be printed
logging.EXTRA = 15
logging.addLevelName(logging.EXTRA, "EXTRA")
def _extra(self, message, *args, **kws):
if self.isEnabledFor(logging.EXTRA):
self._log(logging.EXTRA, message, args, **kws)
logging.Logger.extra = _extra
@click.option('-T', '--test-mode', help='Assume test mode and doesn\'t setup '
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment