Add NullHandler to the root logger
This commit is contained in:
1 parent
4e8dd5e8c6
commit
106831cc9a
1 file changed
+2
@@ -52,6 +52,8 @@ if len(sys.argv) > 1:
|
|||||||
elif arg in ("-vvv", "-v3"):
|
elif arg in ("-vvv", "-v3"):
|
||||||
logging_level = logging.DEBUG
|
logging_level = logging.DEBUG
|
||||||
# handle logging stuff
|
# handle logging stuff
|
||||||
|
root_logger = logging.getLogger()
|
||||||
|
root_logger.addHandler(logging.NullHandler())
|
||||||
logger = logging.getLogger("TwitchDrops")
|
logger = logging.getLogger("TwitchDrops")
|
||||||
handler = logging.StreamHandler(sys.stdout)
|
handler = logging.StreamHandler(sys.stdout)
|
||||||
handler.setFormatter(logging.Formatter("{levelname}: {message}", style='{'))
|
handler.setFormatter(logging.Formatter("{levelname}: {message}", style='{'))
|
||||||
|
|||||||
Reference in new issue
Block a user