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

Bad key provided to slog #78

Closed
guidanoli opened this issue Apr 17, 2024 · 0 comments · Fixed by #48
Closed

Bad key provided to slog #78

guidanoli opened this issue Apr 17, 2024 · 0 comments · Fixed by #48
Labels
a-backend Area: back-end t-bug Type: bug report

Comments

@guidanoli
Copy link
Contributor

In the back-end, we're using the slog Go package for logging purposes.
When running the application, we sometimes see this kind of message:

validator-1  | DBG testing an exploit for %v
validator-1  |  !BADKEY=/bounties/1.tar.xz

It seems that the back-end is trying to do some string interpolation (with %v), but slog just prints the message as-is, and raises a "bad key" error with the value that should have been inserted in the original message.

@guidanoli guidanoli added t-bug Type: bug report a-backend Area: back-end labels Apr 17, 2024
@guidanoli guidanoli linked a pull request Apr 17, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in Bug Buster Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-backend Area: back-end t-bug Type: bug report
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant