From 80257b7dba617c4f40af6271844f88b2e8b6bd88 Mon Sep 17 00:00:00 2001 From: BoxBoxJason Date: Mon, 12 Oct 2026 21:58:21 +0200 Subject: [PATCH] fix(log): wrong key on failed objectstore retrieval Signed-off-by: BoxBoxJason --- internal/cnpgi/instance/backup.go | 2 +- internal/cnpgi/instance/metrics.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cnpgi/instance/backup.go b/internal/cnpgi/instance/backup.go index ebf166c4d..b03314618 100644 --- a/internal/cnpgi/instance/backup.go +++ b/internal/cnpgi/instance/backup.go @@ -83,7 +83,7 @@ func (b BackupServiceImplementation) Backup( var objectStore barmancloudv1.ObjectStore if err := b.Client.Get(ctx, configuration.GetBarmanObjectKey(), &objectStore); err != nil { - contextLogger.Error(err, "while getting object store", "key", configuration.GetRecoveryBarmanObjectKey()) + contextLogger.Error(err, "while getting object store", "key", configuration.GetBarmanObjectKey()) return nil, err } diff --git a/internal/cnpgi/instance/metrics.go b/internal/cnpgi/instance/metrics.go index d21a49c0d..cd7dd921f 100644 --- a/internal/cnpgi/instance/metrics.go +++ b/internal/cnpgi/instance/metrics.go @@ -116,7 +116,7 @@ func (m metricsImpl) Collect( var objectStore barmancloudv1.ObjectStore if err := m.Client.Get(ctx, configuration.GetBarmanObjectKey(), &objectStore); err != nil { - contextLogger.Error(err, "while getting object store", "key", configuration.GetRecoveryBarmanObjectKey()) + contextLogger.Error(err, "while getting object store", "key", configuration.GetBarmanObjectKey()) return nil, err }