Skip to content

Commit 839b4ab

Browse files
argorainkipe
authored andcommitted
Fixed logging imports when file is required (#74)
logging.handlers wasn't properly imported. They have to be imported implicitly.
1 parent 59020a2 commit 839b4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enocean/consolelogger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- encoding: utf-8 -*-
22
from __future__ import print_function, unicode_literals, division, absolute_import
33
import logging
4-
4+
import logging.handlers
55

66
def init_logging(level=logging.DEBUG, log_to_file=False, logsize=1024, logcount=5):
77
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')

0 commit comments

Comments
 (0)