diff --git a/jobs/README.md b/jobs/README.md index bd70da4..f6daae6 100644 --- a/jobs/README.md +++ b/jobs/README.md @@ -10,6 +10,15 @@ Update `config.ini` and run this in a container ``` python submit.py ``` + +## Logging +When submitting jobs, you might want to have a bit more information for debugging. To do that, please do this before job submission: +- Copy the default xenon config to your home or somewhere safe `/project2/lgrandi/xenonnt/xenon.config` +- Keep everything else the same, and then modify the logging level there by `logging_level=debug` (or `info` should also work). See [here](https://github.com/XENONnT/utilix/blob/b94ef41851e437efa35ae9dc82c6fcdfca77b88c/utilix/config.py#L95) for details. +- Then export the config by `export XENON_CONFIG=`. +- Submit jobs as usual. + + ## Tips - You need to download yourself `raw_records` and `raw_records_aqmon` before submission! - Unless you are working on AmBe, put `mem_per_cpu = 45000` (MB) should be enough. Otherwise please do `55000`. diff --git a/saltax/contexts.py b/saltax/contexts.py index c479178..f069172 100644 --- a/saltax/contexts.py +++ b/saltax/contexts.py @@ -9,7 +9,7 @@ from utilix import xent_collection -logging.basicConfig(handlers=[logging.StreamHandler()]) +logging.basicConfig(level=logging.INFO, handlers=[logging.StreamHandler()]) log = logging.getLogger("fuse.context") diff --git a/saltax/plugins/f_raw_records.py b/saltax/plugins/f_raw_records.py index 0155c87..9867c77 100644 --- a/saltax/plugins/f_raw_records.py +++ b/saltax/plugins/f_raw_records.py @@ -12,7 +12,7 @@ export, __all__ = strax.exporter() -logging.basicConfig(handlers=[logging.StreamHandler()]) +logging.basicConfig(level=logging.INFO, handlers=[logging.StreamHandler()]) log = logging.getLogger("fuse.detector_physics.csv_input") diff --git a/saltax/plugins/s_raw_records.py b/saltax/plugins/s_raw_records.py index 2282d0a..cc99cf8 100644 --- a/saltax/plugins/s_raw_records.py +++ b/saltax/plugins/s_raw_records.py @@ -12,7 +12,7 @@ ) export, __all__ = strax.exporter() -logging.basicConfig(handlers=[logging.StreamHandler()]) +logging.basicConfig(level=logging.INFO, handlers=[logging.StreamHandler()]) log = logging.getLogger("wfsim.interface") log.setLevel("WARNING")