Fix bug in `WorkerService::Logging()` handler.
authorDerek Murray <mrry@google.com>
Wed, 16 May 2018 05:55:44 +0000 (22:55 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 16 May 2018 05:58:05 +0000 (22:58 -0700)
commita09c0c8858e3539a80bbb20677153b1950f64fb7
treedcbbda2bcee18adae041dfcbfcd2b9dab570f1f9
parenta77abd0e8a1a87e24a22a8400114c76af7d675fb
Fix bug in `WorkerService::Logging()` handler.

Since transitioning to proto3, it was not possible to distinguish between the absence of
LoggingRequest::rpc_logging and it being set to false. This led to a bug that ignored
log-disabling messages in some implementations, which meant that logging was never
disabled. This fix adds explicit fields in LoggingRequest for enabling and disabling RPC
logging.
PiperOrigin-RevId: 196782547
tensorflow/core/distributed_runtime/master_session.cc
tensorflow/core/distributed_runtime/rpc/grpc_worker_service.cc
tensorflow/core/protobuf/worker.proto