Skip to content

Commit 74ed1c1

Browse files
committed
Minor log improvement
1 parent f290aaf commit 74ed1c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/deployment/resources/member_cleanup.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ func (r *Resources) cleanupRemovedClusterMembers() error {
7171
r.health.mutex.Unlock()
7272

7373
// Only accept recent cluster health values
74-
if time.Since(ts) > maxClusterHealthAge {
75-
log.Info().Msg("Cleanup longer than max cluster health exiting")
74+
healthAge := time.Since(ts)
75+
if healthAge > maxClusterHealthAge {
76+
log.Info().Dur("age", healthAge).Msg("Cleanup longer than max cluster health. Exiting")
7677
return nil
7778
}
7879

0 commit comments

Comments
 (0)