capture warnings in log file

This commit is contained in:
Alan Hamlett 2015-04-02 17:12:33 -07:00
parent 1d53a04a7d
commit ebbfd80a77

View file

@ -73,6 +73,7 @@ def set_log_level(logger, args):
def setup_logging(args, version):
logging.captureWarnings(True)
logger = logging.getLogger('WakaTime')
set_log_level(logger, args)
if len(logger.handlers) > 0: