diff options
author | Googler <noreply@google.com> | 2018-03-05 14:49:00 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-05 14:50:44 -0800 |
commit | 922d1e671bc02086afdcfb8ae1636eefc53e0ee2 (patch) | |
tree | 7aa8c9973ff7d39c970a25dd88e58ad0b4ee30b8 /src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java | |
parent | e225b6fd1a745aaeaef8c90b3b5b0485784b2d67 (diff) |
remote: Add interceptor for logging gRPC calls during remote execution/caching
This provides a io.grpc.ClientInterceptor implementation that can be used to log gRPC call information. The interceptor can select a logging handler to use based on the gRPC method being called (Watch, Execute, Write, etc) to build a LogEntry, which can then be logged after the call has finished. Unit tests for the interceptor are included.
In this change, the interceptor is never invoked, nor are there any handlers implemented for any gRPC methods. The interceptor also never tries to log any entries.
To avoid circular dependency issues (Remote library will depend on logger which depends on remote library for utils), I've factored out the utility classes from the remote library into their own directory/package as part of this change.
PiperOrigin-RevId: 187926516
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java b/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java index 2f9e0c3ed0..717d5f538f 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java +++ b/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java @@ -14,6 +14,7 @@ package com.google.devtools.build.lib.remote; +import com.google.devtools.build.lib.remote.util.DigestUtil; import com.google.devtools.remoteexecution.v1test.Digest; import java.io.IOException; |