Skip to content

Commit 5cfe756

Browse files
authoredMar 13, 2025··
Disable noisy log message by default (#1025)
1 parent 8bc025c commit 5cfe756

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎src/codemodder/codemodder.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def run(
134134
codemod_registry: registry.CodemodRegistry | None = None,
135135
sast_only: bool = False,
136136
ai_client: bool = True,
137+
log_matched_files: bool = False,
137138
) -> tuple[CodeTF | None, int, TokenUsage]:
138139
start = datetime.datetime.now()
139140

@@ -192,9 +193,12 @@ def run(
192193
log_list(logging.INFO, "including paths", context.included_paths)
193194
log_list(logging.INFO, "excluding paths", path_exclude)
194195

195-
log_list(
196-
logging.DEBUG, "matched files", (str(path) for path in context.files_to_analyze)
197-
)
196+
if log_matched_files:
197+
log_list(
198+
logging.DEBUG,
199+
"matched files",
200+
(str(path) for path in context.files_to_analyze),
201+
)
198202

199203
context.semgrep_prefilter_results = find_semgrep_results(
200204
context,
@@ -279,6 +283,7 @@ def _run_cli(original_args) -> int:
279283
original_cli_args=original_args,
280284
codemod_registry=codemod_registry,
281285
sast_only=argv.sonar_issues_json or argv.sarif,
286+
log_matched_files=True,
282287
)
283288
return status
284289

0 commit comments

Comments
 (0)
Please sign in to comment.