From 7c7fe0ba7c54cbd311c98b96151bba34d0c9a1d2 Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Mon, 8 Jul 2024 10:26:49 +0200 Subject: [PATCH] show if certificate was changed or not --- internal/certificates/certificates.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/certificates/certificates.go b/internal/certificates/certificates.go index 939fbd1..4d29e07 100644 --- a/internal/certificates/certificates.go +++ b/internal/certificates/certificates.go @@ -59,8 +59,11 @@ func HandleCertificates(logger *slog.Logger, config *configuration.ConfigFileDat logger.Error("post certificate change command failed", "cert-id", cert.Name, "error", err) } } - - logger.Info("Certificate updated successfully", "cert-id", cert.Name) + if certIsDifferent { + logger.Info("New certificate rolled out", "cert-id", cert.Name) + } else { + logger.Info("Certificate not changed, skipping...", "cert-id", cert.Name) + } } }