Skip to content

Commit

Permalink
Hotfix: Removed after_setup_logger signal handler from the default wo…
Browse files Browse the repository at this point in the history
…rker app.py
  • Loading branch information
Nusnus committed Mar 11, 2024
1 parent 4d9fe34 commit 0b147ef
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/pytest_celery/vendors/worker/content/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
from __future__ import annotations

import json
import logging
import sys

from celery import Celery
from celery.signals import after_setup_logger

imports = None

Expand All @@ -23,11 +20,5 @@
print(f"Changed worker configuration: {json.dumps(config, indent=4)}")


@after_setup_logger.connect
def setup_loggers(logger: logging.Logger, *args: tuple, **kwargs: dict) -> None:
# https://distributedpython.com/posts/celery-docker-and-the-missing-startup-banner/
logger.addHandler(logging.StreamHandler(sys.stdout))


if __name__ == "__main__":
app.start()

0 comments on commit 0b147ef

Please sign in to comment.