Suppress gRPC log spam on Cloud TPU.

This commit is contained in:
Skye Wanderman-Milne 2021-03-11 22:52:54 +00:00
parent 077793cd64
commit 5cb5056ea7

View File

@ -31,6 +31,8 @@ def cloud_tpu_init():
if not _running_in_cloud_tpu_vm():
return
os.environ.setdefault('GRPC_VERBOSITY', 'ERROR')
# If the user has set any topology-related env vars, don't set any
# automatically.
if any([