Loger - change default location for gui but not daq
This commit is contained in:
1 parent
cc48f8683b
commit
49068b4431
1 file changed
+3
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user