Skip to content

Commit

Permalink
MESH-000: Fix logging message and error handling in service entry sus…
Browse files Browse the repository at this point in the history
…pension check (#882)

Co-authored-by: pchaand <punakshi_chaand@gmail.com>
  • Loading branch information
Punakshi Chaand and pchaand committed Mar 5, 2025
1 parent 55c1992 commit 571d9d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admiral/pkg/clusters/serviceentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func modifyServiceEntryForNewServiceOrPod(
sourceIdentity = getNonPartitionedIdentity(remoteRegistry.AdmiralCache, sourceIdentity)
if remoteRegistry.ServiceEntrySuspender.SuspendUpdate(sourceIdentity, env) {
ctxLogger.Infof(common.CtxLogFormat, "SuspenderCheck", "", "",
"processing skipped as service entry update is suspended for identity")
return nil, fmt.Errorf("processing skipped as service entry update is suspended for identity %s in environment %s", sourceIdentity, env)
"processing skipped as service entry update is suspended for identity "+sourceIdentity+" in environment "+env)
return nil, nil
}
if commonUtil.IsAdmiralReadOnly() {
ctxLogger.Infof(common.CtxLogFormat, event, "", "", "", "processing skipped as Admiral is in Read-only mode")
Expand Down

0 comments on commit 571d9d8

Please sign in to comment.