Skip to content

Commit cc34aab

Browse files
committed
Update functions_to_optimize.py
1 parent a982d64 commit cc34aab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codeflash/discovery/functions_to_optimize.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ def filter_functions(
412412
disable_logs: bool = False,
413413
) -> tuple[dict[Path, list[FunctionToOptimize]], int]:
414414
blocklist_funcs = get_blocklisted_functions()
415-
logger.debug(f"Blocklisted functions: {blocklist_funcs}")
416415
# Remove any function that we don't want to optimize
417416

418417
# Ignore files with submodule path, cache the submodule paths
@@ -458,13 +457,14 @@ def filter_functions(
458457
malformed_paths_count += 1
459458
continue
460459
if blocklist_funcs:
460+
console.print(["blocklist", blocklist_funcs])
461461
for function in functions.copy():
462462
path = Path(function.file_path).name
463463
if path in blocklist_funcs and function.function_name in blocklist_funcs[path]:
464464
functions.remove(function)
465-
logger.debug(f"Skipping {function.function_name} in {path} as it has already been optimized")
465+
console.print(f"blocklist: Skipping {function.function_name} in {path}")
466466
continue
467-
logger.debug(f"blocklist: Optimizing {function.function_name} in {path}")
467+
console.print(f"blocklist: Optimizing {function.function_name} in {path}")
468468

469469
filtered_modified_functions[file_path] = functions
470470
functions_count += len(functions)

0 commit comments

Comments
 (0)