Skip to content

Commit

Permalink
Update logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Jun 13, 2024
1 parent ad316de commit fa221bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/palace/manager/celery/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def import_celery_tasks() -> None:

@setup_logging.connect
def celery_logger_setup(loglevel: int, logfile: str | None, **kwargs: Any) -> None:
services = container_instance()
level = services.logging.config.level() # type: ignore[attr-defined]
container_level = level.levelno if level else None
container_level = level.levelno if level is not None else None
root_logger = logging.getLogger()

# If celery requested a lower log level, then we update the root logger to use the lower level.
Expand Down

0 comments on commit fa221bd

Please sign in to comment.