@@ -19,14 +19,12 @@ def get_list_of_destinations():
19
19
found_destinations = []
20
20
regex = r"^SC4S_DEST_SPLUNK_HEC_(.*)_URL$"
21
21
22
- for env_var_key , _ in os .environ .items ():
23
- if re .search (regex , env_var_key ):
24
- found_destinations .append (env_var_key )
25
- print ("Found destinations: {}" .format (set (found_destinations )))
22
+ for var_key , var_variable in os .environ .items ():
23
+ if re .search (regex , var_key ):
24
+ found_destinations .append (var_variable )
26
25
return set (found_destinations )
27
26
28
27
class Config :
29
- SC4S_DEST_SPLUNK_HEC_DEFAULT_URL = os .getenv ('SC4S_DEST_SPLUNK_HEC_DEFAULT_URL' )
30
28
HEALTHCHECK_PORT = int (os .getenv ('SC4S_LISTEN_STATUS_PORT' , '8080' ))
31
29
CHECK_QUEUE_SIZE = str_to_bool (os .getenv ('HEALTHCHECK_CHECK_QUEUE_SIZE' , "false" ))
32
30
MAX_QUEUE_SIZE = int (os .getenv ('HEALTHCHECK_MAX_QUEUE_SIZE' , '10000' ))
@@ -85,8 +83,7 @@ def check_queue_size(
85
83
stats = result .stdout .splitlines ()
86
84
87
85
queue_sizes_all_destinations = []
88
- logger .error (f"Destinations { sc4s_dest_splunk_hec_destinations } ." )
89
- logger .error (f"Stats { stats } ." )
86
+
90
87
for destination in sc4s_dest_splunk_hec_destinations :
91
88
destination_stat = next (
92
89
(s for s in stats if ";queued;" in s and destination in s ),
0 commit comments