YARN-11080. Improve debug log in ContainerTokenIdentifier when writing ContainerTokenIdentifier to RPC layer

This commit is contained in:
ChaosJu 2022-02-23 14:51:23 +08:00 committed by GitHub
parent 365375412f
commit ac853cae4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -326,7 +326,9 @@ public class ContainerTokenIdentifier extends TokenIdentifier {
@Override
public void write(DataOutput out) throws IOException {
LOG.debug("Writing ContainerTokenIdentifier to RPC layer: {}", this);
if (LOG.isDebugEnabled()) {
LOG.debug("Writing ContainerTokenIdentifier to RPC layer: {}", this);
}
out.write(proto.toByteArray());
}