Skip to main content

don’t explode if we can’t get logging options from ES

ID
bf8c6d0
date
2023-09-05 09:36:03+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
43f889e
message
don't explode if we can't get logging options from ES
changed files
1 file, 4 additions, 1 deletion

Changed files

wellcome/open_logging_cluster.py (6208) → wellcome/open_logging_cluster.py (6273)

diff --git a/wellcome/open_logging_cluster.py b/wellcome/open_logging_cluster.py
index c7ca09f..e1cd56f 100755
--- a/wellcome/open_logging_cluster.py
+++ b/wellcome/open_logging_cluster.py
@@ -124,7 +124,10 @@ def get_logging_options():
 
     yield from cached_entries.items()
 
-    new_entries = get_logging_options_from_es()
+    try:
+        new_entries = get_logging_options_from_es()
+    except Exception as e:
+        new_entries = {}
 
     for k, v in new_entries.items():
         if k not in cached_entries: