Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive info logging by KICS plugin #1901

Closed
2 tasks done
paralta opened this issue Jul 12, 2024 · 0 comments · Fixed by #1955
Closed
2 tasks done

Excessive info logging by KICS plugin #1901

paralta opened this issue Jul 12, 2024 · 0 comments · Fixed by #1955
Labels
good first issue Good for newcomers scanners Issues related to adding new scanners

Comments

@paralta
Copy link
Contributor

paralta commented Jul 12, 2024

Description

Currently when running end-to-end tests, the test logs display a significant amount of INFO logs from the KICS plugin scanner that are not relevant. This makes it challenging to not only identify actual warnings and errors, but also track test results.

We need to review the log levels on KICS to avoid cluttering logs.

Expected Behavior

Only relevant messages are displayed

Actual Behavior

https://github.com/openclarity/vmclarity/actions/runs/9906026708/job/27367476459?pr=1866#step:11:203

time="2024-07-12T10:29:17Z" level=info msg="   ____    __" func="github.com/openclarity/vmclarity/scanner/families/plugins/runner.(*Scanner).Scan.func2" file="/home/runner/work/vmclarity/vmclarity/scanner/families/plugins/runner/runner.go:115" scanner=kics plugin=kics input="rootfs:/home/runner/work/vmclarity/vmclarity/e2e/testdata" metadata="map[apiVersion:1.0.0 name:KICS version:v1.7.13]" family=plugins
  time="2024-07-12T10:29:17Z" level=info msg="  / __/___/ /  ___" func="github.com/openclarity/vmclarity/scanner/families/plugins/runner.(*Scanner).Scan.func2" file="/home/runner/work/vmclarity/vmclarity/scanner/families/plugins/runner/runner.go:115" input="rootfs:/home/runner/work/vmclarity/vmclarity/e2e/testdata" metadata="map[apiVersion:1.0.0 name:KICS version:v1.7.13]" family=plugins scanner=kics plugin=kics
  time="2024-07-12T10:29:17Z" level=info msg=" / _// __/ _ \\/ _ \\" func="github.com/openclarity/vmclarity/scanner/families/plugins/runner.(*Scanner).Scan.func2" file="/home/runner/work/vmclarity/vmclarity/scanner/families/plugins/runner/runner.go:115" input="rootfs:/home/runner/work/vmclarity/vmclarity/e2e/testdata" metadata="map[apiVersion:1.0.0 name:KICS version:v1.7.13]" family=plugins scanner=kics plugin=kics

Affected Version

main branch

Steps to Reproduce

  1. Run end to end tests

Checklist

@paralta paralta added scanners Issues related to adding new scanners good first issue Good for newcomers labels Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers scanners Issues related to adding new scanners
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant