Skip to content

Commit 30e4f93

Browse files
committed
Log issuer when cert is obtained or renwed successfully
1 parent b29d2a0 commit 30e4f93

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

config.go

+6-2
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,9 @@ func (cfg *Config) obtainCert(ctx context.Context, name string, interactive bool
650650
return fmt.Errorf("[%s] Obtain: saving assets: %v", name, err)
651651
}
652652

653-
log.Info("certificate obtained successfully", zap.String("identifier", name))
653+
log.Info("certificate obtained successfully",
654+
zap.String("identifier", name),
655+
zap.String("issuer", issuerUsed.IssuerKey()))
654656

655657
certKey := certRes.NamesKey()
656658

@@ -907,7 +909,9 @@ func (cfg *Config) renewCert(ctx context.Context, name string, force, interactiv
907909
return fmt.Errorf("[%s] Renew: saving assets: %v", name, err)
908910
}
909911

910-
log.Info("certificate renewed successfully", zap.String("identifier", name))
912+
log.Info("certificate renewed successfully",
913+
zap.String("identifier", name),
914+
zap.String("issuer", issuerKey))
911915

912916
certKey := newCertRes.NamesKey()
913917

0 commit comments

Comments
 (0)