summaryrefslogtreecommitdiff
path: root/src/poezio.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-10-02 21:18:25 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-10-02 21:18:25 +0200
commitbfcf20f301bb7029f2613122ffc6f4724a8e84dc (patch)
tree5b9d6bb24d6c88824ce1688a387932c7cf8542a7 /src/poezio.py
parent5ae665b2535b2ff174bd9af357afc337748a57a3 (diff)
downloadpoezio-bfcf20f301bb7029f2613122ffc6f4724a8e84dc.tar.gz
poezio-bfcf20f301bb7029f2613122ffc6f4724a8e84dc.tar.bz2
poezio-bfcf20f301bb7029f2613122ffc6f4724a8e84dc.tar.xz
poezio-bfcf20f301bb7029f2613122ffc6f4724a8e84dc.zip
By default, log only critical messages. This avoid
warnings to be displayed on stdout if no debug file was specified
Diffstat (limited to 'src/poezio.py')
-rw-r--r--src/poezio.py2
1 files changed, 2 insertions, 0 deletions
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