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) + } } }