|
@@ -193,10 +193,10 @@ LOGGING = {
|
|
|
},
|
|
|
'info': {
|
|
|
'level': 'INFO',
|
|
|
- 'class': 'logging.handlers.TimedRotatingFileHandler',
|
|
|
+ 'class': 'logging.handlers.RotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/info/info.log',
|
|
|
- 'backupCount': 3,
|
|
|
- 'when': 'D',
|
|
|
+ 'backupCount': 10,
|
|
|
+ 'maxBytes': 1024 * 1024 * 1024, # 1G
|
|
|
'formatter': 'standard',
|
|
|
'encoding': 'utf-8',
|
|
|
},
|