Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Nov 28, 2024
1 parent f93b2dc commit 6052433
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,18 @@
"class": "logging.StreamHandler",
"formatter": "verbose",
},
"file": {
"level": "DEBUG", # Enregistrer tous les messages en fichier
"class": "logging.FileHandler",
"filename": os.path.join(BASE_DIR, "debug.log"),
"formatter": "verbose",
},
},
"loggers": {
"django": {
"handlers": ["console", "file"],
"handlers": ["console"],
"level": "DEBUG", # Applique DEBUG globalement
"propagate": True,
},
"wagtail": {
"handlers": ["console", "file"],
"handlers": ["console"],
"level": "DEBUG",
"propagate": True,
},
"django.request": {
"handlers": ["console", "file"],
"level": "WARNING", # Log des requêtes avec erreurs
"propagate": False,
},
},
}

Expand Down

0 comments on commit 6052433

Please sign in to comment.