From ebbfd80a77d8543a714a1eee4d689b53a484c14d Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Thu, 2 Apr 2015 17:12:33 -0700 Subject: [PATCH] capture warnings in log file --- wakatime/logger.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wakatime/logger.py b/wakatime/logger.py index b89c0b4..2eb2e81 100644 --- a/wakatime/logger.py +++ b/wakatime/logger.py @@ -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: