Skip to content

Commit

Permalink
fix(secrets): change logs form info to debug (#6685)
Browse files Browse the repository at this point in the history
fix log
  • Loading branch information
RabeaZr committed Aug 27, 2024
1 parent b113262 commit 51d1178
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions checkov/secrets/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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...")
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 51d1178

Please sign in to comment.