From 6a7fcdfb4eb88675e62a298c454e9debf25263b0 Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 23 Sep 2022 09:19:06 -0400 Subject: [PATCH] use instance path instead of root_path for nox --- src/spiffworkflow_backend/services/logging_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spiffworkflow_backend/services/logging_service.py b/src/spiffworkflow_backend/services/logging_service.py index 2bb3ebaa..94a14da3 100644 --- a/src/spiffworkflow_backend/services/logging_service.py +++ b/src/spiffworkflow_backend/services/logging_service.py @@ -133,7 +133,7 @@ def setup_logger(app: Flask) -> None: spiff_logger_filehandler = None if app.config["SPIFFWORKFLOW_BACKEND_LOG_TO_FILE"]: spiff_logger_filehandler = logging.FileHandler( - f"{app.root_path}/../../log/{app.env}.log" + f"{app.instance_path}/../../log/{app.env}.log" ) spiff_logger_filehandler.setLevel(spiff_log_level) spiff_logger_filehandler.setFormatter(log_formatter)