Commit e4da9336 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

do not generate log file by default

parent d06b0a5c
...@@ -83,7 +83,7 @@ class CsstMsDataManager: ...@@ -83,7 +83,7 @@ class CsstMsDataManager:
Use "pml" for Purple Mountain Lab cluster and "local" for others. Use "pml" for Purple Mountain Lab cluster and "local" for others.
dfs_root : str dfs_root : str
The DFS root path. The DFS root path.
obs_id : int obs_id : str
The exposure ID. The exposure ID.
exp_start : int exp_start : int
The exposure start time in ``yyyymmddhhmmss`` format. The exposure start time in ``yyyymmddhhmmss`` format.
...@@ -152,8 +152,8 @@ class CsstMsDataManager: ...@@ -152,8 +152,8 @@ class CsstMsDataManager:
_survey: str = "MS", _survey: str = "MS",
obs_type: str = "SCI", obs_type: str = "SCI",
l0_post: str = "L0_1", l0_post: str = "L0_1",
log_ppl="csst-l1ppl.log", log_ppl=None,
log_mod="csst-l1mod.log", log_mod=None,
clear_dir=False, clear_dir=False,
verbose=True, verbose=True,
n_jobs=18, n_jobs=18,
...@@ -231,13 +231,15 @@ class CsstMsDataManager: ...@@ -231,13 +231,15 @@ class CsstMsDataManager:
self.clear_dir(self.dir_l1) self.clear_dir(self.dir_l1)
# pipeline logger # pipeline logger
self.logger_ppl = get_logger(name="CSST L1 Pipeline Logger", filename=os.path.join(dir_l1, log_ppl)) if log_ppl is not None:
if verbose: self.logger_ppl = get_logger(name="CSST L1 Pipeline Logger", filename=os.path.join(dir_l1, log_ppl))
self.logger_ppl.info("logger_ppl initialized") if verbose:
self.logger_ppl.info("logger_ppl initialized")
# module logger # module logger
self.logger_mod = get_logger(name="CSST L1 Module Logger", filename=os.path.join(dir_l1, log_mod)) if log_mod is not None:
if verbose: self.logger_mod = get_logger(name="CSST L1 Module Logger", filename=os.path.join(dir_l1, log_mod))
self.logger_mod.info("logger_mod initialized") if verbose:
self.logger_mod.info("logger_mod initialized")
self.custom_bias = None self.custom_bias = None
self.custom_dark = None self.custom_dark = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment