mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-15 00:30:33 +03:00
EDMCLogging: loglevel is str | int
This commit is contained in:
parent
19f3df77f2
commit
acbe1231ef
@ -145,7 +145,7 @@ class Logger:
|
|||||||
logging.Logger instance.
|
logging.Logger instance.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, logger_name: str, loglevel: int = _default_loglevel):
|
def __init__(self, logger_name: str, loglevel: int | str = _default_loglevel):
|
||||||
"""
|
"""
|
||||||
Set up a `logging.Logger` with our preferred configuration.
|
Set up a `logging.Logger` with our preferred configuration.
|
||||||
|
|
||||||
@ -541,7 +541,7 @@ def get_main_logger(sublogger_name: str = '') -> 'LoggerMixin':
|
|||||||
|
|
||||||
|
|
||||||
# Singleton
|
# Singleton
|
||||||
loglevel = config.get_str('loglevel')
|
loglevel: str | int = config.get_str('loglevel')
|
||||||
if not loglevel:
|
if not loglevel:
|
||||||
loglevel = logging.INFO
|
loglevel = logging.INFO
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user