diff --git a/cmd/server/helper_cert.go b/cmd/server/helper_cert.go index a9566f3f32..0a3c70e889 100644 --- a/cmd/server/helper_cert.go +++ b/cmd/server/helper_cert.go @@ -55,7 +55,7 @@ func loadCertificateFromFile(cmd *cobra.Command, c *config.Config) *tls.Certific cert, err := tls.LoadX509KeyPair(certPath, keyPath) if err != nil { - c.GetLogger().Warn("Could not load x509 key pair: %s", cert) + c.GetLogger().WithError(errors.WithStack(err)).Warn("Could not load x509 key pair, will use self-issued certificate instead.") return nil } return &cert