capture warnings in log file
This commit is contained in:
parent
1d53a04a7d
commit
ebbfd80a77
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ def set_log_level(logger, args):
|
||||||
|
|
||||||
|
|
||||||
def setup_logging(args, version):
|
def setup_logging(args, version):
|
||||||
|
logging.captureWarnings(True)
|
||||||
logger = logging.getLogger('WakaTime')
|
logger = logging.getLogger('WakaTime')
|
||||||
set_log_level(logger, args)
|
set_log_level(logger, args)
|
||||||
if len(logger.handlers) > 0:
|
if len(logger.handlers) > 0:
|
||||||
|
|
Loading…
Reference in a new issue