Amélioration de la gestion des logs
This commit is contained in:
@@ -297,9 +297,11 @@ LOGGING = {
|
||||
"disable_existing_loggers": False,
|
||||
"handlers": {
|
||||
"file": {
|
||||
"class": "logging.handlers.RotatingFileHandler",
|
||||
"level": level_debug,
|
||||
"class": "logging.FileHandler",
|
||||
"filename": "backend.log",
|
||||
"maxBytes": 5 * 1024 * 1024, # 5 MB
|
||||
"backupCount": 5, # keep last 5 files
|
||||
},
|
||||
"mail_admins": {
|
||||
"level": "ERROR",
|
||||
|
Reference in New Issue
Block a user