Skip to content

Commit

Permalink
Add RuleConfiguredTargetValue#toString for better debugging.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 215086945
  • Loading branch information
janakdr authored and Copybara-Service committed Sep 30, 2018
1 parent c0c300d commit 050e0ff
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package com.google.devtools.build.lib.skyframe;

import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
Expand Down Expand Up @@ -94,4 +95,13 @@ public void clear(boolean clearEverything) {
}
transitivePackagesForPackageRootResolution = null;
}

@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("generatingActionIndex", generatingActionIndex)
.add("actions", actions)
.add("configuredTarget", configuredTarget)
.toString();
}
}

0 comments on commit 050e0ff

Please sign in to comment.