-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Error logs mangle return error message #126
Comments
I had a quick look into this codebase but couldn't easily spot the file that prints this. Looks pretty clear what kind of string build / formatting would cause this, if you can point me into the right direction I can have a stab at fixing the issue as well. |
@bojand Isn't is just this line: https://github.com/bojand/ghz/blob/master/printer/printer.go#L46 ?
I guess if you change that from |
Use Fprint instead of Fprintf to fix #126
Describe the bug
We have an error message that includes an encoded URLs. In
ghz
that seems to be used in a format string and hence leading to this output:To Reproduce
Return an error message with
%
in itExpected behavior
Should log the error message verbatim
Environment
Screenshots
In BloomRPC for example the response looks just fine:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: