Configurable logging for the API and worker (SCR-5)
CI / notify (push) Successful in 6s
CI / lint (push) Successful in 18s
CI / test (push) Successful in 5m26s
CI / validate-monitoring (push) Successful in 15s
CI / federation-interop (push) Successful in 1m17s
CI / images (push) Successful in 33s
CI / assets (push) Successful in 9s
CI / python-package (push) Successful in 18s
CI / trigger-deploy (push) Successful in 3s
CI / notify (push) Successful in 6s
CI / lint (push) Successful in 18s
CI / test (push) Successful in 5m26s
CI / validate-monitoring (push) Successful in 15s
CI / federation-interop (push) Successful in 1m17s
CI / images (push) Successful in 33s
CI / assets (push) Successful in 9s
CI / python-package (push) Successful in 18s
CI / trigger-deploy (push) Successful in 3s
Shared LOG_LEVEL/LOG_FORMAT (text or json) set up in create_app, per-task activity and duration logs in the worker, and more context on delivery, inbox and import failures. Alembic's fileConfig no longer disables loggers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
65cd610468
commit
ad383b602e
16 files changed
+212
-7
No files matched your search
@@ -549,7 +549,7 @@ def process_job(job: ImportJob) -> None:
|
||||
db.session.rollback()
|
||||
_finish(job, "failed", err.message)
|
||||
except Exception:
|
||||
log.exception("import job %s failed", job.id)
|
||||
log.exception("import job %s (%s) for user %s failed", job.id, job.source, job.user_id)
|
||||
db.session.rollback()
|
||||
_finish(
|
||||
job, "failed", "The import failed unexpectedly. Try again, or check the server logs."
|
||||
|
||||
Reference in new issue
Block a user