commit | 777b30d06700f76ba580715429f3663de3fa0529 | [log] [tgz] |
---|---|---|
author | Klaus Aehlig <aehlig@google.com> | Fri Feb 24 16:30:15 2017 +0000 |
committer | Yue Gan <yueg@google.com> | Mon Feb 27 15:05:00 2017 +0000 |
tree | d3abdc6f42d04256c486270add24e5b0c5d3abbd | |
parent | 25aa033ad5657a5cfa16e8307464648b9374be2d [diff] [blame] |
Provide more reporting options to SkyFunctions With more specific information to be reported by Skyfunctions, e.g., to inform the build-event protocol on missing files, the EventHandler interface is no longer enough. Therefore, provide an enriched context for reporting events. -- Change-Id: I2d06166fe4d5b9054e24ad8c752fafc039e3f9f8 Reviewed-on: https://cr.bazel.build/8794 PiperOrigin-RevId: 148463437 MOS_MIGRATED_REVID=148463437
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java index 0d98786..2612048 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
@@ -442,6 +442,7 @@ } catch (IOException e) { env.getReporter().handle(Event.error("Error while writing profile file: " + e.getMessage())); } + env.getReporter().clearEventBus(); } // Make sure we keep a strong reference to this logger, so that the