diff --git a/back_end/saolei/saolei/settings.py b/back_end/saolei/saolei/settings.py index 45d80dd..e1b3a16 100644 --- a/back_end/saolei/saolei/settings.py +++ b/back_end/saolei/saolei/settings.py @@ -325,7 +325,7 @@ }, "root": { 'level': 'DEBUG', - 'class': 'logging.FileHandler', + 'class': 'logging.handlers.RotatingFileHandler', 'filename': os.path.join(BASE_DIR, 'logs/root.log'), 'formatter': 'default', 'encoding': 'utf-8',