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

chore: print to stderr #37

Merged
merged 4 commits into from
Jun 24, 2022
Merged

chore: print to stderr #37

merged 4 commits into from
Jun 24, 2022

Conversation

MaineK00n
Copy link
Collaborator

@MaineK00n MaineK00n commented May 16, 2022

What did you implement:

When an error occurs, use stderr instead of stdout.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

$ go-kev fetch kevuln --dbtype redis --dbpath "redis://127.0.0.1:6379" 1>/dev/null
EROR[05-16|11:45:32] failed to fetchKEVuln                    err="Failed to open DB. err: dial tcp 127.0.0.1:6379: connect: connection refused"
Failed to open DB. err: dial tcp 127.0.0.1:6379: connect: connection refused

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

Reference

@MaineK00n MaineK00n self-assigned this May 16, 2022
@MaineK00n MaineK00n merged commit 300877e into main Jun 24, 2022
@MaineK00n MaineK00n deleted the MaineK00n/stderr branch June 24, 2022 09:54
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.

1 participant