Skip to content

Commit

Permalink
add celery task id chain (#5441)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Jan 13, 2025
1 parent 882f4a2 commit 7a68a92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions koku/koku/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
from oci.exceptions import ConfigFileNotFound

from . import database
from . import sentry
from . import sentry # noqa: F401
from .configurator import CONFIGURATOR
from .env import ENVIRONMENT


# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

Expand Down Expand Up @@ -370,7 +369,9 @@
"%(task_id)s %(task_parent_id)s %(task_root_id)s "
"%(message)s"
)
SIMPLE_FORMATTING = "[%(asctime)s] %(levelname)s %(task_root_id)s %(process)d %(message)s"
SIMPLE_FORMATTING = (
"[%(asctime)s] %(levelname)s %(task_root_id)s %(task_parent_id)s %(task_id)s %(process)d %(message)s"
)

LOG_DIRECTORY = ENVIRONMENT.get_value("LOG_DIRECTORY", default=BASE_DIR)
DEFAULT_LOG_FILE = os.path.join(LOG_DIRECTORY, "app.log")
Expand Down

0 comments on commit 7a68a92

Please sign in to comment.