do not print debubg if verbose = False
This commit is contained in:
parent
9fcb9f1d70
commit
bf05e29ebb
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue