Skip to content

Commit

Permalink
resources: verbose logging upon smbshare completion
Browse files Browse the repository at this point in the history
A user may define multiple smbshares within different namespace, where
each has its own reconcile cycle. Have more details in completion log
message so that developer may know exactly which smbshare completed.

Signed-off-by: Shachar Sharon <[email protected]>
  • Loading branch information
synarete authored and mergify[bot] committed Mar 23, 2023
1 parent 6be54e3 commit 5903b74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/resources/smbshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ func (m *SmbShareManager) Update(
return result
}

m.logger.Info("Done updating SmbShare resources")
m.logger.Info(
"Done updating SmbShare resources",
"SmbShare.Namespace", instance.Namespace,
"SmbShare.Name", instance.Name,
"Annotations", instance.Annotations)
return Done
}

Expand Down

0 comments on commit 5903b74

Please sign in to comment.