Skip to content

Commit

Permalink
Add toString implementation for ExecutionPolicy.
Browse files Browse the repository at this point in the history
`ExecutionPolicy` uses the default `toString` implementation making it useless
for debugging. Add an implementation producing more readable output.

PiperOrigin-RevId: 339552679
  • Loading branch information
alexjski authored and copybara-github committed Oct 28, 2020
1 parent e0ca785 commit 0d05fcc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ public boolean canRunLocallyOnly() {
public boolean canRunLocally() {
return locality != Locality.REMOTE_ONLY;
}

@Override
public String toString() {
return locality.toString();
}
}

0 comments on commit 0d05fcc

Please sign in to comment.