diff --git a/src/oncall/bin/notifier.py b/src/oncall/bin/notifier.py index 74b0f203..8e8cf350 100644 --- a/src/oncall/bin/notifier.py +++ b/src/oncall/bin/notifier.py @@ -3,6 +3,7 @@ import sys import yaml import logging +import logging.handlers import time import os from importlib import import_module diff --git a/src/oncall/bin/scheduler.py b/src/oncall/bin/scheduler.py index 9b800d11..6bc5800a 100644 --- a/src/oncall/bin/scheduler.py +++ b/src/oncall/bin/scheduler.py @@ -8,13 +8,13 @@ import time import importlib import os +import logging +import logging.handlers from collections import defaultdict from oncall import db, utils from oncall.api.v0.schedules import get_schedules -import logging - logger = logging.getLogger() formatter = logging.Formatter('%(asctime)s %(levelname)s %(name)s %(message)s') log_file = os.environ.get('SCHEDULER_LOG_FILE') diff --git a/src/oncall/bin/user_sync.py b/src/oncall/bin/user_sync.py index dcd70ea3..29b4d311 100644 --- a/src/oncall/bin/user_sync.py +++ b/src/oncall/bin/user_sync.py @@ -5,6 +5,7 @@ monkey.patch_all() # NOQA import logging +import logging.handlers import os import sys import importlib