@@ -23,10 +23,10 @@ def get_source_code_context(
23
23
for context_strategy in context_strategies :
24
24
context_start , context_end = context_strategy .get_context_indexes (source_lines , start_line , end_line )
25
25
if context_start is None or context_end is None :
26
- logger .info (f'Context Strategy: "{ context_strategy .__class__ .__name__ } " failed to return context' )
26
+ logger .debug (f'Context Strategy: "{ context_strategy .__class__ .__name__ } " failed to return context' )
27
27
continue
28
28
29
- logger .info (f'"{ context_strategy .__class__ .__name__ } " Context Strategy used: { context_start } , { context_end } ' )
29
+ logger .debug (f'"{ context_strategy .__class__ .__name__ } " Context Strategy used: { context_start } , { context_end } ' )
30
30
context = "" .join (source_lines [context_start :context_end ])
31
31
if count_openai_tokens (context ) <= context_token_length :
32
32
return context_start , context_end
@@ -211,7 +211,7 @@ def transform_sarif_results(
211
211
file_path = str (uri .relative_to (base_path ))
212
212
213
213
# Extract lines from the code file
214
- logger .info (f"Extracting context for { file_path } at { start_line } :{ end_line } " )
214
+ logger .debug (f"Extracting context for { file_path } at { start_line } :{ end_line } " )
215
215
try :
216
216
with open_with_chardet (file_path , "r" ) as file :
217
217
src = file .read ()
@@ -229,10 +229,10 @@ def transform_sarif_results(
229
229
context_start = None
230
230
context_end = None
231
231
source_code_context = None
232
- logger .info (f"File not found in the current working directory: { file_path } " )
232
+ logger .debug (f"File not found in the current working directory: { file_path } " )
233
233
234
234
if source_code_context is None :
235
- logger .info (f"No context found for { file_path } at { start_line } :{ end_line } " )
235
+ logger .debug (f"No context found for { file_path } at { start_line } :{ end_line } " )
236
236
continue
237
237
238
238
start = context_start if context_start is not None else start_line
0 commit comments