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 10:18:37 +02:00
1 parent 7b92686263
commit 9ce13f8bf5
1 file changed
+1 -1
+1 -1
View File
@@ -103,7 +103,7 @@ def get_config_path(env: str = "dev") -> Path:
return config_path
def setup_logger(name="aareDAQ", base_dir: str | None = f'/tmp/mxlogs/', config_path: str | None = None):
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