From 09e624a9e5e3bfc9ab566cc809b33aa53ec1b773 Mon Sep 17 00:00:00 2001 From: jasquat <2487833+jasquat@users.noreply.github.com> Date: Fri, 24 Jan 2025 14:50:07 -0500 Subject: [PATCH] do not set loglevel for spiff log so it can send events to the listener w/ burnettk (#2222) Co-authored-by: jasquat --- spiffworkflow-backend/bin/create_and_run_process_instance.py | 2 +- .../background_processing/celery_worker.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/spiffworkflow-backend/bin/create_and_run_process_instance.py b/spiffworkflow-backend/bin/create_and_run_process_instance.py index d048d330a..74ab32779 100644 --- a/spiffworkflow-backend/bin/create_and_run_process_instance.py +++ b/spiffworkflow-backend/bin/create_and_run_process_instance.py @@ -8,7 +8,7 @@ def main() -> None: app = create_app() - process_model_identifier = sys.argv[1] + process_model_identifier = sys.argv[1].replace(":", "/") with app.app_context(): user = UserModel.query.first() diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/background_processing/celery_worker.py b/spiffworkflow-backend/src/spiffworkflow_backend/background_processing/celery_worker.py index 49f1ed0d4..7bb6a4f7d 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/background_processing/celery_worker.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/background_processing/celery_worker.py @@ -26,6 +26,3 @@ def setup_loggers(logger: Any, *args: Any, **kwargs: Any) -> None: stdout_handler.setFormatter(log_formatter) logger.addHandler(stdout_handler) setup_logger_for_app(the_flask_app, logger, force_run_with_celery=True) - # this handler is getting added somewhere but not sure where so set its - # level really high since we do not need it - logging.getLogger("spiff").setLevel(logging.CRITICAL)