auth log, bb4g fix
Some checks failed
CI / test (pull_request) Failing after 15s
API CI / api-tests (pull_request) Failing after 27s

This commit is contained in:
Tim Lorsbach
2026-06-12 09:59:31 +02:00
parent 6680668c89
commit 597213286a
3 changed files with 41 additions and 14 deletions

View File

@ -275,6 +275,12 @@ LOGGING = {
"filename": os.path.join(LOG_DIR, "debug.log"),
"formatter": "simple",
},
"auth_file": {
"level": "INFO", # Or higher
"class": "logging.FileHandler",
"filename": os.path.join(LOG_DIR, "auth.log"),
"formatter": "simple",
}
},
"loggers": {
# For everything under epdb/ loaded via getlogger(__name__)
@ -295,6 +301,11 @@ LOGGING = {
"propagate": True,
"level": os.environ.get("LOG_LEVEL", "INFO"),
},
"auth": {
"handlers": ["auth_file"],
"propagate": True,
"level": os.environ.get("LOG_LEVEL", "INFO"),
}
},
}