Skip to content

Commit

Permalink
directly import logging.handlers (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocepedaw authored Jan 29, 2021
1 parent 8c925c5 commit f3dbde4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/oncall/bin/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import yaml
import logging
import logging.handlers
import time
import os
from importlib import import_module
Expand Down
4 changes: 2 additions & 2 deletions src/oncall/bin/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions src/oncall/bin/user_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
monkey.patch_all() # NOQA

import logging
import logging.handlers
import os
import sys
import importlib
Expand Down

0 comments on commit f3dbde4

Please sign in to comment.