We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When using access log middleware and setup ${latency}, the output value contains too many white space!!!
${latency}
To Reproduce use the code below:
h.Use( accesslog.New( accesslog.WithFormat(`[${time}] status=${status} latency="${latency}" method=${method} path=${path} queryParams=${queryParams}`), ), )
Expected behavior
we expect the output is latency="459ns". But we got latency=" 459ns".
latency="459ns"
latency=" 459ns"
Screenshots
Hertz version:
hertz: v0.9.3
Environment:
go version go1.23.1 linux/amd64
The text was updated successfully, but these errors were encountered:
@teresadq accesslog is NOT a part of this hertz repo. kindly report on corresponding issue page of accesslog.
accesslog
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When using access log middleware and setup
${latency}
, the output value contains too many white space!!!To Reproduce
use the code below:
Expected behavior
we expect the output is
latency="459ns"
. But we gotlatency=" 459ns"
.Screenshots
Hertz version:
hertz: v0.9.3
Environment:
go version go1.23.1 linux/amd64
The text was updated successfully, but these errors were encountered: