Log simple names of plugin classes when polling.

This commit is contained in:
akwizgran
2014-03-04 14:04:07 +00:00
parent 8dd9efce3c
commit 3a01a04cbf

View File

@@ -69,8 +69,10 @@ class PollerImpl implements Poller, Runnable {
assert removed;
final Collection<ContactId> connected =
connRegistry.getConnectedContacts(p.plugin.getId());
if(LOG.isLoggable(INFO))
LOG.info("Polling " + p.plugin.getClass().getName());
if(LOG.isLoggable(INFO)) {
String name = p.plugin.getClass().getSimpleName();
LOG.info("Polling " + name);
}
pluginExecutor.execute(new Runnable() {
public void run() {
p.plugin.poll(connected);