Logs: moved default logging location to tmp on mx-queue
This commit is contained in:
1 parent
198170d5c4
commit
833416b5e0
2 files changed
+2
-2
No files matched your search
@@ -105,7 +105,7 @@ def setup_logger(name="aareDAQ", base_dir: str | None = '~/tmp/mxlogs', config_p
|
||||
config = yaml.safe_load(f.read())
|
||||
|
||||
# Force base directory to be under the user's home dir
|
||||
effective_base = base_dir or '~/mxlogs'
|
||||
effective_base = base_dir or '/tmp/logs/mxlogs'
|
||||
effective_base = os.path.abspath(os.path.expanduser(os.path.expandvars(effective_base)))
|
||||
|
||||
# Ensure directories for file handlers exist
|
||||
|
||||
@@ -28,7 +28,7 @@ class BECClientWorker:
|
||||
BEAMLINE = beamline.value.lower()
|
||||
service_config = ServiceConfig(redis={"host": f"{BEAMLINE}-bec-001.psi.ch", "port": 6379})
|
||||
print(service_config.config)
|
||||
service_config.config["log_writer"]["base_path"]='./logs'
|
||||
service_config.config["log_writer"]["base_path"]='/tmp/logs'
|
||||
print(service_config.config)
|
||||
self.client = BECIPythonClient(config=service_config,mode=OperationMode.Procedure)
|
||||
self.client.start()
|
||||
|
||||
Reference in new issue
Block a user