fixing logging changes
parent
6056501ff4
commit
e4ab93e954
|
@ -15,10 +15,12 @@ from requests.exceptions import ConnectionError
|
||||||
|
|
||||||
logging_level = logging.INFO
|
logging_level = logging.INFO
|
||||||
log = logging.getLogger("__main__")
|
log = logging.getLogger("__main__")
|
||||||
|
handler = logging.StreamHandler()
|
||||||
log.setLevel(logging_level)
|
log.setLevel(logging_level)
|
||||||
handler.setLevel(logging_level)
|
handler.setLevel(logging_level)
|
||||||
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||||
handler.setFormatter(formatter)
|
handler.setFormatter(formatter)
|
||||||
|
log.addHandler(handler)
|
||||||
|
|
||||||
|
|
||||||
from opentaxii.signals import (
|
from opentaxii.signals import (
|
||||||
|
|
Loading…
Reference in New Issue