commit | e952b920ecbee5225f1098a02d4a39b19aa7e234 | [log] [tgz] |
---|---|---|
author | Patrick Hiesel <hiesel@google.com> | Fri May 29 13:53:30 2020 +0200 |
committer | Patrick Hiesel <hiesel@google.com> | Fri May 29 14:09:31 2020 +0200 |
tree | 4ace81172df694ea77cf4221e0790bba131fcc49 | |
parent | 9e7fd9b420ac9a5caa045cf82b566cc0b51c93ad [diff] |
Expose ProjectRunnable#toString to set the thread name in core Setting a proper toString message will allow Gerrit core to include the message in the thread name which makes debugging easier. Change-Id: Ie874ca95ee6f74352cf161cd4ebecd9e00ec9045
diff --git a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/RefUpdateListener.java b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/RefUpdateListener.java index 311a808..d18d1df 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/RefUpdateListener.java +++ b/src/main/java/com/googlesource/gerrit/plugins/reviewnotes/RefUpdateListener.java
@@ -80,7 +80,7 @@ @Override public String toString() { - return "create-review-notes"; + return "create-review-notes-for-" + e.getProjectName(); } }; if (async) {