By default, log only critical messages. This avoid

warnings to be displayed on stdout if no debug file was
specified
This commit is contained in:
Florent Le Coz 2011-10-02 21:18:25 +02:00
parent 5ae665b253
commit bfcf20f301

View file

@ -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