From 51d1178875edd1fc27d30880489ad47bf5c022f6 Mon Sep 17 00:00:00 2001 From: Rabea Zreik <47931006+RabeaZr@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:24:34 +0300 Subject: [PATCH] fix(secrets): change logs form info to debug (#6685) fix log --- checkov/secrets/runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/checkov/secrets/runner.py b/checkov/secrets/runner.py index 2d0fe8d61c7..58815caa7b0 100644 --- a/checkov/secrets/runner.py +++ b/checkov/secrets/runner.py @@ -152,7 +152,7 @@ def run( for suppression in suppressions if suppression['suppressionType'] == 'SecretsPolicy'] if policies_list: runnable_plugins: dict[str, str] = get_runnable_plugins(policies_list) - logging.info(f"Found {len(runnable_plugins)} runnable plugins") + logging.debug(f"Found {len(runnable_plugins)} runnable plugins") if len(runnable_plugins) > 0: plugins_index += 1 for name, runnable_plugin in runnable_plugins.items(): @@ -164,7 +164,7 @@ def run( 'path': f'file://{work_path}/runnable_plugin_{plugins_index}.py' }) plugins_index += 1 - logging.info(f"Loaded runnable plugin {name}") + logging.debug(f"Loaded runnable plugin {name}") # load internal regex detectors detector_path = f"{current_dir}/plugins/custom_regex_detector.py" logging.info(f"Custom detector found at {detector_path}. Loading...") @@ -390,7 +390,7 @@ def _safe_scan(file_path: str, base_path: str) -> tuple[str, list[PotentialSecre try: start_time = datetime.datetime.now() file_results = [*scan.scan_file(full_file_path)] - logging.info(f'file {full_file_path} results len {len(file_results)}') + logging.debug(f'file {full_file_path} results len {len(file_results)}') end_time = datetime.datetime.now() run_time = end_time - start_time if run_time > datetime.timedelta(seconds=10):