From bfcf20f301bb7029f2613122ffc6f4724a8e84dc Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 2 Oct 2011 21:18:25 +0200 Subject: By default, log only critical messages. This avoid warnings to be displayed on stdout if no debug file was specified --- src/poezio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/poezio.py b/src/poezio.py index dc877626..7b55ce96 100644 --- a/src/poezio.py +++ b/src/poezio.py @@ -27,6 +27,8 @@ def main(): signal.signal(signal.SIGINT, signal.SIG_IGN) # ignore ctrl-c if options.debug: logging.basicConfig(filename=options.debug, level=logging.DEBUG) + else: + logging.basicConfig(level=logging.CRITICAL) cocore = singleton.Singleton(core.Core) cocore.start() if not cocore.xmpp.start(): # Connect to remote server -- cgit v1.2.3