Skip to content

Commit

Permalink
bf-cat Output salt/platform, deindent command (bazelbuild#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
werkt authored and amishra-u committed Feb 1, 2024
1 parent 974e37c commit 11efbd9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/build/buildfarm/tools/Cat.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ private static void printAction(ByteString actionBlob) {
}

private static void printAction(int level, Action action) {
indentOut(
level + 1, "Command Digest: Command " + DigestUtil.toString(action.getCommandDigest()));
indentOut(level, "Command Digest: Command " + DigestUtil.toString(action.getCommandDigest()));
indentOut(
level, "Input Root Digest: Directory " + DigestUtil.toString(action.getInputRootDigest()));
indentOut(level, "DoNotCache: " + (action.getDoNotCache() ? "true" : "false"));
Expand All @@ -113,6 +112,8 @@ private static void printAction(int level, Action action) {
+ (action.getTimeout().getSeconds() + action.getTimeout().getNanos() / 1e9)
+ "s");
}
indentOut(level, "Salt: " + action.getSalt());
indentOut(level, "Platform: " + action.getPlatform());
}

private static void printCommand(ByteString commandBlob) {
Expand Down

0 comments on commit 11efbd9

Please sign in to comment.