1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-26 23:10:47 +02:00

directly import logging.handlers (#340)

This commit is contained in:
Diego Cepeda
2021-01-29 11:42:23 -08:00
committed by GitHub
parent 8c925c5c1f
commit f3dbde4a2d
3 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
import sys
import yaml
import logging
import logging.handlers
import time
import os
from importlib import import_module

View File

@@ -8,13 +8,13 @@ import sys
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')

View File

@@ -5,6 +5,7 @@ from gevent import monkey, spawn
monkey.patch_all() # NOQA
import logging
import logging.handlers
import os
import sys
import importlib