Skip to content

Commit

Permalink
Better debug for template fails
Browse files Browse the repository at this point in the history
  • Loading branch information
calum-chamberlain committed Jan 7, 2024
1 parent 39f3cf9 commit dd5b9fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rt_eqcorrscan/database/database_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def _get_data_for_event(
try:
st = client.get_waveforms_bulk(bulk)
except Exception as e:
Logger.error(e)
Logger.error(f"Failed to download bulk due to {e}, attempting to download individual channels")
st = Stream()
for channel in bulk:
Logger.debug("Downloading individual channel {0}".format(channel))
Expand All @@ -511,7 +511,8 @@ def _get_data_for_event(
location=channel[2], channel=channel[3],
starttime=channel[4], endtime=channel[5])
except Exception as e:
Logger.error(e)
Logger.error(f"Could not download {channel} due to {e}")
Logger.error(f"Client base url is {client.base_url}")
# Trim to expected length
try:
st.merge()
Expand Down

0 comments on commit dd5b9fb

Please sign in to comment.