logging: defualt location changed back to ~/tmp/mxlogs/ as GUI also uses this path. The shared location leads to permissions errors. Needs a long term fix.

This commit is contained in:
appleb_m committed 2026-05-21 14:06:27 +02:00
1 parent 9ce13f8bf5
commit f789a0e917
1 file changed
+1 -1
+1 -1
View File
@@ -102,7 +102,7 @@ def get_config_path(env: str = "dev") -> Path:
return config_path
#TODO fix logging.
def setup_logger(name="aareDAQ", base_dir: str | None = f'~/tmp/mxlogs/', config_path: str | None = None):
# switch to production mode using: $ APP_ENV=prod python main.py
env = os.getenv("APP_ENV", "dev") # default: dev