From 1b43dfb560db4c12cae13baa53ee84bba97f3f37 Mon Sep 17 00:00:00 2001 From: Katie Harrington Date: Wed, 8 Jan 2025 02:38:42 +0000 Subject: [PATCH] add more logging messages --- sotodlib/io/imprinter.py | 9 +++++++-- sotodlib/site_pipeline/update_g3tsmurf_db.py | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sotodlib/io/imprinter.py b/sotodlib/io/imprinter.py index 008df9540..fa063418a 100644 --- a/sotodlib/io/imprinter.py +++ b/sotodlib/io/imprinter.py @@ -1649,9 +1649,14 @@ def check_book_in_librarian( self.logger.info(f"received response from librarian {resp}") if n_tries > 1: if book.type == 'smurf': - time.sleep(30) + wait=30 else: - time.sleep(5) + wait=5 + self.logger.warning( + f"Waiting {wait} seconds and trying book {book.bid} " + "with the librarian again" + ) + time.sleep(wait) return self.check_book_in_librarian( book, n_copies=n_copies, n_tries=n_tries-1, diff --git a/sotodlib/site_pipeline/update_g3tsmurf_db.py b/sotodlib/site_pipeline/update_g3tsmurf_db.py index 7357dc165..f995a0e08 100644 --- a/sotodlib/site_pipeline/update_g3tsmurf_db.py +++ b/sotodlib/site_pipeline/update_g3tsmurf_db.py @@ -107,6 +107,10 @@ def main(config: Optional[str] = None, update_delay: float = 2, raise_list_readout_ids.append(obs.obs_id) if len(raise_list_timing) > 0 or len(raise_list_readout_ids) > 0: + logger.info( + f"Found observations with bad timing or missing readout ids " + "checking to see if they've been manually cleared" + ) if checked_file is None or not os.path.exists(checked_file): logger.warning( f"File {checked_file} does not exist so cannot check if "