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:
parent
5ae665b253
commit
bfcf20f301
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue