From 75c5a932ea5800bca9865eaed3c98e4c16b1ed4b Mon Sep 17 00:00:00 2001 From: maskarb Date: Fri, 10 Jan 2025 16:22:59 -0500 Subject: [PATCH] add celery task id chain --- koku/koku/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/koku/koku/settings.py b/koku/koku/settings.py index d555eda782..a62a1e1ed4 100644 --- a/koku/koku/settings.py +++ b/koku/koku/settings.py @@ -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 @@ -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")