tmc / grpc-websocket-proxy

A proxy to transparently upgrade grpc-gateway streaming endpoints to use websockets
MIT License
553 stars 72 forks source link

How to enable debug logging #17

Closed mnacharov closed 4 years ago

mnacharov commented 4 years ago

I use etcd 3.3.15 which has this module compiled in. I set --debug=true option to enable debug messages, but I don't see messages from this module in log file. So, how can I enable it?

juwell commented 4 years ago

did you add the param wsproxy.WithLogger() when you called wsproxy.WebsocketProxy()? like this: wsproxy.WebsocketProxy(mux, wsproxy.WithLogger(&WsProxyLog))

mnacharov commented 4 years ago

thanks! etcd doesn't called WithLogger