File: logging.py

package info (click to toggle)
python-django-guid 3.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 664 kB
  • sloc: python: 1,267; makefile: 16
file content (15 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from typing import Any

from celery.signals import setup_logging


@setup_logging.connect
def config_loggers(*args: Any, **kwargs: Any) -> None:  # pragma: no cover
    """
    Configures celery to use the Django settings.py logging configuration.
    """
    from logging.config import dictConfig

    from django.conf import settings

    dictConfig(settings.LOGGING)