aboutsummaryrefslogtreecommitdiffstats
path: root/python/utils
diff options
context:
space:
mode:
Diffstat (limited to 'python/utils')
-rw-r--r--python/utils/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/utils/__init__.py b/python/utils/__init__.py
index 856e42f1..c7faf097 100644
--- a/python/utils/__init__.py
+++ b/python/utils/__init__.py
@@ -1,4 +1,5 @@
import logging
+import logging.handlers
import os
@@ -14,11 +15,11 @@ class SerenitasFileHandler(logging.FileHandler):
self.setFormatter(SerenitasFileHandler._formatter)
-class SerenitasRotatingFileHandler(logging.RotatingFileHandler):
+class SerenitasRotatingFileHandler(logging.handlers.RotatingFileHandler):
"""simple class that encapsulates where we store our logs"""
def __init__(self, log_file, maxBytes=0):
super().__init__(
- filename=os.path.join(os.getenv("LOG_DIR"), log_file), maxBytes=maxByes
+ filename=os.path.join(os.getenv("LOG_DIR"), log_file), maxBytes=maxBytes
)
self.setFormatter(SerenitasFileHandler._formatter)