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

fix: improve debug messages #1244

Merged
merged 1 commit into from
Sep 20, 2021
Merged

fix: improve debug messages #1244

merged 1 commit into from
Sep 20, 2021

Conversation

knqyf263
Copy link
Collaborator

@knqyf263 knqyf263 commented Sep 19, 2021

Overview

Improve debug messages

Before

$ trivy -debug image alpine:3.12
2021-09-19T21:20:34.363+0300    INFO    Detected OS: alpine
2021-09-19T21:20:34.363+0300    INFO    Detecting Alpine vulnerabilities...
...
2021-09-19T18:07:18.239+0300    DEBUG   Analysis error: unable to parse bin/arch: failed to parse bin/arch: EOF
2021-09-19T18:07:18.239+0300    DEBUG   Analysis error: unable to parse bin/ash: failed to parse bin/ash: EOF
2021-09-19T18:07:18.239+0300    DEBUG   Analysis error: unable to parse bin/bbconfig: failed to parse bin/bbconfig: EOF
2021-09-19T18:07:18.239+0300    DEBUG   Analysis error: unable to parse bin/base64: failed to parse bin/base64: EOF
2021-09-19T18:07:18.699+0300    DEBUG   Analysis error: unable to parse bin/chown: failed to parse bin/chown: EOF
2021-09-19T18:07:18.699+0300    DEBUG   Analysis error: unable to parse bin/chgrp: failed to parse bin/chgrp: EOF
2021-09-19T18:07:18.699+0300    DEBUG   Analysis error: unable to parse bin/conspy: failed to parse bin/conspy: EOF
2021-09-19T18:07:18.699+0300    DEBUG   Analysis error: unable to parse bin/chmod: failed to parse bin/chmod: EOF

After

$ trivy image aquasec/trivy:0.19.2
2021-09-19T21:20:34.363+0300    INFO    Detected OS: alpine
2021-09-19T21:20:34.363+0300    INFO    Detecting Alpine vulnerabilities...
2021-09-19T21:20:34.364+0300    INFO    Number of language-specific files: 1
2021-09-19T21:20:34.364+0300    INFO    Detecting gobinary vulnerabilities...

PRs

@knqyf263 knqyf263 self-assigned this Sep 19, 2021
@knqyf263 knqyf263 merged commit 982f35b into main Sep 20, 2021
@knqyf263 knqyf263 deleted the suppress_warn branch September 20, 2021 07:28
liamg pushed a commit that referenced this pull request Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants