improbable-eng / grpc-web

gRPC Web implementation for Golang and TypeScript
Apache License 2.0
4.39k stars 435 forks source link

flag to disable logs? #1076

Open hsnhrn opened 2 years ago

hsnhrn commented 2 years ago

I am runnning the grpcwebproxy something like this:

grpcwebproxy --backend_addr=localhost:9090 \ --backend_tls_noverify I need to disable the log. which flag can i add to disable it?

johanbrandhorst commented 2 years ago

Hi! Here are the supported options:

https://github.com/improbable-eng/grpc-web/blob/7dc90821e5bbaae7ff8c2386f72d59653d0fb169/go/grpcwebproxy/main.go#L32-L54. There does not appear to be an option to disable logging. Would you be willing to contribute one?

hsnhrn commented 2 years ago

I would love to contribute. A bit new to Golang thats why i will need a bit of help. Would you be able to help me in providing a little bit of documentation about it? Thanks a lot!

johanbrandhorst commented 2 years ago

Lets explore actually if we can help each other in a different way. Have you tried just redirecting standard out to /dev/null when running the proxy?

grpcwebproxy --backend_addr=localhost:9090 --backend_tls_noverify > /dev/null