Skip to content

Commit

Permalink
chore(plugins): Logging improvements on new plugin releases (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed May 7, 2020
1 parent ff91827 commit 212436a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ protected void commitDelta(PluginPollingDelta delta, boolean sendEvents) {
item -> {
if (sendEvents) {
postEvent(item.pluginRelease);
log.debug("{} event posted", item.pluginRelease);
} else {
log.debug("{} processed, but not sending event", item.pluginRelease);
}
});

Expand All @@ -90,6 +91,7 @@ private void postEvent(PluginRelease release) {
} else if (release != null) {
AuthenticatedRequest.allowAnonymous(
() -> echoService.get().postEvent(new PluginEvent(release)));
log.debug("{} event posted", release);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,24 @@ public String getVersion() {
return version;
}
}

@Override
public String toString() {
return "PluginRelease{"
+ "pluginId='"
+ pluginId
+ '\''
+ ", version='"
+ version
+ '\''
+ ", releaseDate='"
+ releaseDate
+ '\''
+ ", preferred="
+ preferred
+ ", lastModified='"
+ lastModified
+ '\''
+ '}';
}
}

0 comments on commit 212436a

Please sign in to comment.