Skip to content

Commit a29aa1c

Browse files
authored
fix(logs): log the correct name when on ObjectStore not found error (#540)
Closes #539 Signed-off-by: Marco Nenciarini <[email protected]>
1 parent eced5ea commit a29aa1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cnpgi/operator/reconciler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func (r ReconcilerImplementation) Pre(
8181
if apierrs.IsNotFound(err) {
8282
contextLogger.Info(
8383
"barman object configuration not found, requeuing",
84-
"name", pluginConfiguration.BarmanObjectName,
85-
"namespace", cluster.Namespace)
84+
"name", barmanObjectKey.Name,
85+
"namespace", barmanObjectKey.Namespace)
8686
return &reconciler.ReconcilerHooksResult{
8787
Behavior: reconciler.ReconcilerHooksResult_BEHAVIOR_REQUEUE,
8888
}, nil

0 commit comments

Comments
 (0)