avoid duplicate logging
This commit is contained in:
parent
12a89f9560
commit
741662dbef
1 changed files with 0 additions and 5 deletions
|
@ -6,12 +6,7 @@ console_logger = logging.StreamHandler()
|
||||||
console_logger.setLevel(logging.INFO)
|
console_logger.setLevel(logging.INFO)
|
||||||
console_logger.setFormatter(formatter)
|
console_logger.setFormatter(formatter)
|
||||||
|
|
||||||
debug_logger = logging.StreamHandler()
|
|
||||||
debug_logger.setLevel(logging.DEBUG)
|
|
||||||
debug_logger.setFormatter(formatter)
|
|
||||||
|
|
||||||
logger: logging.Logger = logging.getLogger('PyTeX')
|
logger: logging.Logger = logging.getLogger('PyTeX')
|
||||||
|
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.INFO)
|
||||||
logger.addHandler(console_logger)
|
logger.addHandler(console_logger)
|
||||||
logger.addHandler(debug_logger)
|
|
||||||
|
|
Loading…
Reference in a new issue