mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix logging config path
Update the logging configuration path to use the correct application path.
This commit is contained in:
parent
53b12e245f
commit
130dc3db02
6
main.py
6
main.py
@ -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"),
|
||||||
|
Loading…
Reference in New Issue
Block a user