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: