From cbaaea6bdbfceae2f5a4262f7906ca043814653b Mon Sep 17 00:00:00 2001 From: "E. Joshua Rigler" <erigler@usgs.gov> Date: Mon, 17 Mar 2025 08:54:10 -0600 Subject: [PATCH] Improved diagnostic messages in Edge/MiniSeed Factories --- geomagio/edge/EdgeFactory.py | 9 ++++++++- geomagio/edge/MiniSeedFactory.py | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/geomagio/edge/EdgeFactory.py b/geomagio/edge/EdgeFactory.py index 91b62820..8ffa9124 100644 --- a/geomagio/edge/EdgeFactory.py +++ b/geomagio/edge/EdgeFactory.py @@ -429,7 +429,14 @@ class EdgeFactory(TimeseriesFactory): # to get_timeseries() that use this instance of EdgeFactory self.port = [port] break - print("No data returned from ", self.host, " on port ", port) + print( + "No data returned from ", + self.host, + "on port ", + port, + " - SNCL:", + sncl, + ) # try alternate port(s) if provided except Exception as e: print("Failed to get data from ", self.host, " on port ", port) diff --git a/geomagio/edge/MiniSeedFactory.py b/geomagio/edge/MiniSeedFactory.py index 61ac0926..50c6da8f 100644 --- a/geomagio/edge/MiniSeedFactory.py +++ b/geomagio/edge/MiniSeedFactory.py @@ -435,7 +435,14 @@ class MiniSeedFactory(TimeseriesFactory): # to get_timeseries() that use this instance of EdgeFactory self.port = [port] break - print("No data returned from ", self.host, " on port ", port) + print( + "No data returned from ", + self.host, + "on port ", + port, + " - SNCL:", + sncl, + ) # try alternate port(s) if provided except Exception as e: print("Failed to get data from ", self.host, " on port ", port) -- GitLab