diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-04-24 21:08:37 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-12-22 21:05:17 +0100 |
commit | 616541ecdb720a6f685e828bf194ecc3e907a224 (patch) | |
tree | f4c37d001d336ee609aa8603bad346e062d9e26f /xtesting/ci/logging.debug.ini | |
parent | e11091e94b179c67f1c57f5fdf33816a469c5feb (diff) |
Enable debug messages via env var
It stops printing in xtesting.debug.log by default.
It decreases testing duration via Raspberry PI without additional
tasks [1].
[1] https://wiki.opnfv.org/display/functest/Run+Functest+containers+on+Raspberry+PI
Change-Id: I2eded47a7a150a45330a69f3262fc7ca6fdb7463
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/ci/logging.debug.ini')
-rw-r--r-- | xtesting/ci/logging.debug.ini | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/xtesting/ci/logging.debug.ini b/xtesting/ci/logging.debug.ini new file mode 100644 index 00000000..1c8d136a --- /dev/null +++ b/xtesting/ci/logging.debug.ini @@ -0,0 +1,60 @@ +[loggers] +keys=root,xtesting,ci,core,warnings + +[handlers] +keys=console,wconsole,file,dfile + +[formatters] +keys=standard + +[logger_root] +level=NOTSET +handlers=dfile + +[logger_xtesting] +level=NOTSET +handlers=file +qualname=xtesting + +[logger_ci] +level=NOTSET +handlers=console +qualname=xtesting.ci + +[logger_core] +level=NOTSET +handlers=console +qualname=xtesting.core + +[logger_warnings] +level=NOTSET +handlers=file,console +qualname=py.warnings + +[handler_console] +class=StreamHandler +level=INFO +formatter=standard +args=(sys.stdout,) + +[handler_wconsole] +class=StreamHandler +level=WARN +formatter=standard +args=(sys.stdout,) + +[handler_file] +class=FileHandler +level=DEBUG +formatter=standard +args=("/var/lib/xtesting/results/xtesting.log",) + +[handler_dfile] +class=FileHandler +level=DEBUG +formatter=standard +args=("/var/lib/xtesting/results/xtesting.debug.log",) + +[formatter_standard] +format=%(asctime)s - %(name)s - %(levelname)s - %(message)s +datefmt= |