You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating the app dependency to grpc-gateway v2.15.1 causes breakage upon runtime. It gets panicked as flag redefined: alsologtostderr.
It appears that I'm using k8s.io/klog/v2 for the logging library, but grpc-gateway/v2/runtime now started using glog, and they are conflicting with each other for some of flag names.
To Reproduce
Set up a grpc-gateway server with klog. use v2.15.0
go get github.com/grpc-ecosystem/grpc-gateway/v2 to update to v2.15.1
build
run
Expected behavior
Runs as usual.
Actual Behavior
runtime panic with flag redefined: alsologtostderr
Your Environment
Any OS, any Go version.
The text was updated successfully, but these errors were encountered:
jmuk
added a commit
to jmuk/grpc-gateway
that referenced
this issue
Feb 23, 2023
🐛 Bug Report
Updating the app dependency to grpc-gateway v2.15.1 causes breakage upon runtime. It gets panicked as
flag redefined: alsologtostderr
.It appears that I'm using
k8s.io/klog/v2
for the logging library, but grpc-gateway/v2/runtime now started using glog, and they are conflicting with each other for some of flag names.To Reproduce
go get github.com/grpc-ecosystem/grpc-gateway/v2
to update to v2.15.1Expected behavior
Runs as usual.
Actual Behavior
runtime panic with
flag redefined: alsologtostderr
Your Environment
Any OS, any Go version.
The text was updated successfully, but these errors were encountered: