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.
This sets the
GRPC_VERBOSITY
environment variable toERROR
, unless it's already been set in the parent process. This has to happen before anything callsimport 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.