Skip to content

Commit 0a47a1f

Browse files
tkoeppecopybara-github
authored andcommitted
Escalate the "analysis cache discarded" message from "info" to "warn", and add some text to advise that discarding the analysis cache may be expensive.
PiperOrigin-RevId: 524409797 Change-Id: Iabafdd62e66d7be57fc6383d8af9c2ef3d707fc0
1 parent c3550ed commit 0a47a1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/google/devtools/build/lib/skyframe/SkyframeBuildView.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,15 @@ public void setConfiguration(
273273
EventHandler eventHandler, BuildConfigurationValue configuration, int maxDifferencesToShow) {
274274
if (skyframeAnalysisWasDiscarded) {
275275
eventHandler.handle(
276-
Event.info(
276+
Event.warn(
277277
"--discard_analysis_cache was used in the previous build, "
278278
+ "discarding analysis cache."));
279279
skyframeExecutor.handleAnalysisInvalidatingChange();
280280
} else {
281281
String diff = describeConfigurationDifference(configuration, maxDifferencesToShow);
282282
if (diff != null) {
283-
eventHandler.handle(Event.info(diff + ", discarding analysis cache."));
283+
eventHandler.handle(
284+
Event.warn(diff + ", discarding analysis cache (this can be expensive)."));
284285
// Note that clearing the analysis cache is currently required for correctness. It is also
285286
// helpful to save memory.
286287
//

0 commit comments

Comments
 (0)