Fix logging config path

Update the logging configuration path to use the correct application
path.
This commit is contained in:
Zedifus 2023-12-07 15:14:50 +00:00
parent 53b12e245f
commit 130dc3db02

View File

@ -276,9 +276,11 @@ def setup_logging(debug=True):
one optional (defaulted to True) parameter which one optional (defaulted to True) parameter which
determines whether or not the logging level is "debug" or verbose. determines whether or not the logging level is "debug" or verbose.
""" """
logging_config_file = os.path.join(os.path.curdir, "app", "config", "logging.json") logging_config_file = os.path.join(
APPLICATION_PATH, "app", "config", "logging.json"
)
if not helper.check_file_exists( if not helper.check_file_exists(
os.path.join(os.path.curdir, "logs", "auth_tracker.log") os.path.join(APPLICATION_PATH, "logs", "auth_tracker.log")
): ):
open( open(
os.path.join(app_path, "logs", "auth_tracker.log"), os.path.join(app_path, "logs", "auth_tracker.log"),