mediachain / oldchain-client

[DEPRECATED] old mediachain client experiments
MIT License
4 stars 2 forks source link

set the default grpc log level to ERROR in the cli #55

Closed yusefnapora closed 8 years ago

yusefnapora commented 8 years ago

This sets the GRPC_VERBOSITY environment variable to ERROR, unless it's already been set in the parent process. This has to happen before anything calls import grpc, since the logger gets configured as soon as it's imported.

This keeps gprc from spewing debug info to the console, although it still prints errors whenever the connection is closed on linux. That should hopefully be fixed upstream soon tho.

Only affects the mediachain cli, so e.g. the indexer would have to do the same somewhere near its entry point.