Skip to content

Commit 1c0a643

Browse files
committed
Update functions_to_optimize.py
1 parent 261b747 commit 1c0a643

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

codeflash/discovery/functions_to_optimize.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,18 +458,23 @@ def filter_functions(
458458
malformed_paths_count += 1
459459
continue
460460
if blocklist_funcs:
461+
console.print([blocklist_funcs, f"file_path: {file_path}"])
461462
filtered_functions = []
462463
for function in functions:
463464
should_keep = True
464465

465466
rel_path = str(Path(function.file_path).relative_to(project_root))
467+
console.print(f"rel_path: {rel_path}")
466468

467469
if rel_path in blocklist_funcs and function.function_name in blocklist_funcs[rel_path]:
468470
console.print(
469471
f"blocklist: Removing {function.function_name} in {rel_path} because it is blocklisted"
470472
)
471473
should_keep = False
472-
474+
else:
475+
console.print(
476+
f"blocklist: Keeping {function.function_name} in {rel_path} because it is not blocklisted"
477+
)
473478
if should_keep:
474479
filtered_functions.append(function)
475480
functions = filtered_functions

0 commit comments

Comments
 (0)