Loger - change default location for gui but not daq

This commit is contained in:
appleb_m committed 2025-11-12 08:45:27 +01:00
1 parent cc48f8683b
commit 49068b4431
1 file changed
+3 -1
+3 -1
View File
@@ -34,8 +34,10 @@ def get_config_path(env: str = "dev") -> Path:
return config_path
def setup_logger(name="aareDAQ", base_dir: str | None = '/tmp/mxlogs', config_path: str | None = None):
def setup_logger(name="aareDAQ", base_dir: str | None = '~/tmp/mxlogs', config_path: str | None = None):
# switch to production mode using: $ APP_ENV=prod python main.py
if name == "aareDAQ":
base_dir="/tmp/mxlogs"
env = os.getenv("APP_ENV", "dev") # default: dev
if config_path is None: