@@ -425,10 +425,10 @@ def init_singul(self):
425425 execution_id = singul_executionid ,
426426 )
427427
428- if os .getenv ("DEBUG" ).lower () == "true" :
428+ if os .getenv ("DEBUG" , "" ).lower () == "true" :
429429 self .logger .info ("[DEBUG] Created Singul API object with auth %s, url %s and execution_id %s" % (singul_apikey , self .base_url , singul_executionid ))
430430 except ValueError as e :
431- if os .getenv ("DEBUG" ).lower () == "true" :
431+ if os .getenv ("DEBUG" , "" ).lower () == "true" :
432432 self .logger .error (f"[ERROR] Failed to create Singul API object: { e } " )
433433
434434 self .singul = None
@@ -1156,12 +1156,12 @@ def get_param_multipliers(self, baseparams):
11561156 pass
11571157
11581158
1159- if os .getenv ("DEBUG" ).lower () == "true" :
1159+ if os .getenv ("DEBUG" , "" ).lower () == "true" :
11601160 self .logger .info ("[DEBUG] Listlengths: %s - listitems: %d" % (listlengths , len (listitems )))
11611161
11621162 #if len(listitems) == 0:
11631163 if len (listlengths ) == 0 :
1164- if os .getenv ("DEBUG" ).lower () == "true" :
1164+ if os .getenv ("DEBUG" , "" ).lower () == "true" :
11651165 self .logger .info ("[DEBUG] NO multiplier. Running a single iteration." )
11661166
11671167 paramlist .append (baseparams )
@@ -3874,7 +3874,7 @@ def check_branch_conditions(action, fullexecution, self):
38743874 #self.logger.info(f"Error with subparam deletion of {subparam} in {multi_parameters} (2)")
38753875 pass
38763876
3877- if os .getenv ("DEBUG" ).lower () == "true" :
3877+ if os .getenv ("DEBUG" , "" ).lower () == "true" :
38783878
38793879 # Used for multi testing
38803880 if not multiexecution :
@@ -4112,15 +4112,15 @@ async def parse_value(newres):
41124112 self .logger .info ("Can't handle type %s value from function" % (type (newres )))
41134113
41144114 else :
4115- if os .getenv ("DEBUG" ).lower () == "true" :
4115+ if os .getenv ("DEBUG" , "" ).lower () == "true" :
41164116 self .logger .info ("[DEBUG] APP_SDK DONE: Starting MULTI execution (length: %d) with values %s" % (minlength , multi_parameters ))
41174117
41184118 # 1. Use number of executions based on the arrays being similar
41194119 # 2. Find the right value from the parsed multi_params
41204120
41214121 json_object = False
41224122
4123- if os .getenv ("DEBUG" ).lower () != "true" :
4123+ if os .getenv ("DEBUG" , "" ).lower () != "true" :
41244124 results = self .run_recursed_items (func , multi_parameters , {})
41254125 else :
41264126 try :
0 commit comments