Skip to content

The Celery container still outputs some unstructured logs #619

@sergei-maertens

Description

@sergei-maertens

Product versie / Product version

3.1.0

Omschrijf het probleem / Describe the bug

Having deployed the latest version to get structured logs, I'm still seeing some un-structured logs being emitted in the celery worker container, together with structured logs. I suspect log propagation is causing things to be logged twice.

Example:

2025-06-06 15:01:32,538 INFO celery.worker.consumer.connection  Connected to redis://objecten-maykin-test-redis:6379/1
{"event": "Connected to redis://objecten-maykin-test-redis:6379/1", "source": "app", "timestamp": "2025-06-06T13:01:32.539903Z", "logger": "celery.worker.consumer.connection", "level": "info"}

When logging in structured mode, I do NOT want to see unstructured logs, especially if the log events are identical.

Stappen om te reproduceren / Steps to reproduce

  1. Pull image tag 3.1.0 - this should be able to reproduce with docker compose as well
  2. Inspect the container logs with docker logs <container>

Verwacht gedrag / Expected behavior

  • Logs are not duplicated
  • Structured logs are emitted only

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions