Skip to content

Commit

Permalink
Added display of warnings when running amsn2
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Bisinger <stephane.bisinger@gmail.com>
  • Loading branch information
Kjir committed May 30, 2009
1 parent 54c9990 commit 24414ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion amsn2/core/amsn.py
Expand Up @@ -67,9 +67,11 @@ def __init__(self, options):
papyon.Presence.INVISIBLE:"hidden",
papyon.Presence.OFFLINE:"offline"}

import logging
if self._options.debug:
import logging
logging.basicConfig(level=logging.DEBUG)
else:
logging.basicConfig(level=logging.WARNING)

def run(self):
self._main.show();
Expand Down

0 comments on commit 24414ad

Please sign in to comment.