commit | ae2304ce0d983dfacc850815a0a3c9638bcd659e | [log] [tgz] |
---|---|---|
author | Hugo Arès <hugo.ares@ericsson.com> | Wed Jun 15 08:54:58 2016 -0400 |
committer | Hugo Arès <hugo.ares@ericsson.com> | Wed Jun 15 08:54:58 2016 -0400 |
tree | bc0328bd7c2bdc08fc7fb81aea444066d553adfa | |
parent | 3e6e393b89a4ba74727105f1610a4286a9f035db [diff] |
Print proper name in show-queue for cache eviction Change-Id: I350d08dd3ffb9a146b077d68c0710c44c1c72454
diff --git a/src/main/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheHandler.java b/src/main/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheHandler.java index ecd2a9b..fe8dc3a 100644 --- a/src/main/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheHandler.java +++ b/src/main/java/com/ericsson/gerrit/plugins/evictcache/EvictCacheHandler.java
@@ -64,5 +64,11 @@ public void run() { restSession.evict(pluginName, cacheName, key); } + + @Override + public String toString() { + return String.format("Evict key '%s' from cache '%s' in target instance", + key, cacheName); + } } }