Skip to content

Commit

Permalink
Merge pull request #4 from HubSpot/better-reflector-debug-logs
Browse files Browse the repository at this point in the history
Add more info to reflector debug logs
  • Loading branch information
amydentremont authored Jul 28, 2022
2 parents fcca706 + 3b41a9c commit e3042b8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,14 @@ public void eventReceived(Action action, T resource) {
throw new KubernetesClientException("Unrecognized resource");
}
if (log.isDebugEnabled()) {
log.debug("Event received {} {} resourceVersion {}", action.name(), resource.getKind(), resource.getMetadata().getResourceVersion());
log.debug(
"Event received {} {} {}: resourceVersion {}, resource: {}",
action.name(),
resource.getKind(),
resource.getMetadata().getName(),
resource.getMetadata().getResourceVersion(),
resource
);
}
switch (action) {
case ERROR:
Expand Down

0 comments on commit e3042b8

Please sign in to comment.