add torba logging

This commit is contained in:
Jack Robison 2019-01-31 16:53:54 -05:00
parent 40b90ce79b
commit 957d0290df
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -243,6 +243,8 @@ def main(argv=None):
handler = logging.StreamHandler()
handler.setFormatter(default_formatter)
log.addHandler(handler)
logging.getLogger('torba').addHandler(handler)
logging.getLogger('torba').setLevel(logging.INFO)
logging.getLogger('aioupnp').setLevel(logging.WARNING)
logging.getLogger('aiohttp').setLevel(logging.CRITICAL)