Skip to content

Commit

Permalink
add more logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kmharrington committed Jan 8, 2025
1 parent 3968798 commit 1b43dfb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sotodlib/io/imprinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions sotodlib/site_pipeline/update_g3tsmurf_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 1b43dfb

Please sign in to comment.