diff options
author | 2017-06-01 14:16:29 +0200 | |
---|---|---|
committer | 2017-06-01 18:37:23 +0200 | |
commit | 31c3295e58c8de52a950a3a2c7f05800abda2679 (patch) | |
tree | 9fe0dbbda041086acdca9225ceddeb1ff68ce807 /src | |
parent | 27f4cfefbe7eddaba46ef716e6a73bc7223f26f8 (diff) |
Experimental UI: don't show dates for no-build commands
When building with timestamps enabled, it is useful to know the date
as well, e.g., when later looking at logs. This, however, is not the
case if the command does not build (e.g., "bazel help", "bazel query"),
or, in general, if the first output is only produced after the command
is completed.
Change-Id: I75ef38fbb98e886b1dc38899efa10188055f87e2
PiperOrigin-RevId: 157700578
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/ExperimentalEventHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/ExperimentalEventHandler.java b/src/main/java/com/google/devtools/build/lib/runtime/ExperimentalEventHandler.java index aea47c8810..091fe5d894 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/ExperimentalEventHandler.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/ExperimentalEventHandler.java @@ -242,7 +242,7 @@ public class ExperimentalEventHandler implements EventHandler { } private synchronized void maybeAddDate() { - if (!showTimestamp || dateShown) { + if (!showTimestamp || dateShown || buildComplete) { return; } dateShown = true; |