do not print debubg if verbose = False

This commit is contained in:
Yann Leboulanger 2005-05-17 21:33:41 +00:00
parent 9fcb9f1d70
commit bf05e29ebb
1 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,10 @@ f = logging.Formatter('%(asctime)s %(name)s: %(message)s', '%d %b %Y %H:%M:%S')
h.setFormatter(f) h.setFormatter(f)
log = logging.getLogger('Gajim') log = logging.getLogger('Gajim')
log.addHandler(h) log.addHandler(h)
log.setLevel(logging.DEBUG) if config.get('verbose'):
log.setLevel(logging.DEBUG)
else:
log.setLevel(None)
logger = common.logger.Logger() logger = common.logger.Logger()
DATA_DIR = '../data' DATA_DIR = '../data'