From 29fdd1e423968b7f797b5a33946bc0c08421e0f7 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 15 Jul 2018 11:30:40 +0200 Subject: Stop printing exceptions twice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ife772d33741e7023ed72afeb0f74ed8b461e0033 Signed-off-by: Cédric Ollivier (cherry picked from commit c0168e2f1a1a43f33f552923f3a5511a019129df) --- xtesting/ci/logging.ini | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/xtesting/ci/logging.ini b/xtesting/ci/logging.ini index 5cb5e4bf..1c8d136a 100644 --- a/xtesting/ci/logging.ini +++ b/xtesting/ci/logging.ini @@ -1,15 +1,15 @@ [loggers] -keys=root,xtesting,ci,core +keys=root,xtesting,ci,core,warnings [handlers] -keys=console,wconsole,file +keys=console,wconsole,file,dfile [formatters] keys=standard [logger_root] level=NOTSET -handlers=wconsole,file +handlers=dfile [logger_xtesting] level=NOTSET @@ -26,6 +26,11 @@ level=NOTSET handlers=console qualname=xtesting.core +[logger_warnings] +level=NOTSET +handlers=file,console +qualname=py.warnings + [handler_console] class=StreamHandler level=INFO @@ -44,6 +49,12 @@ 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= -- cgit 1.2.3-korg