diff --git a/pkg/entrance/plugin/nginx/nginx_plugin.go b/pkg/entrance/plugin/nginx/nginx_plugin.go index 05d58fdc3..ac3df42aa 100644 --- a/pkg/entrance/plugin/nginx/nginx_plugin.go +++ b/pkg/entrance/plugin/nginx/nginx_plugin.go @@ -470,14 +470,14 @@ func (n *nginxAPI) addDomain(ads *AddDomainS) bool { httpsInfo.WriteString(`https=true`) httpsInfo.WriteString(fmt.Sprintf(`&cert_name=%s&`, ads.CertificateName)) httpsInfo.WriteString(string(upstream)) - logrus.Debugf("https info is %v", *httpsInfo) + logrus.Debugf("https info is %v", string(httpsInfo.Bytes())) pha.UpStream = httpsInfo.Bytes() } else if ads.TransferHTTP && ads.CertificateName != "" { httpsInfo := bytes.NewBuffer(nil) httpsInfo.WriteString(`tran_https=true`) httpsInfo.WriteString(fmt.Sprintf(`&cert_name=%s&`, ads.CertificateName)) httpsInfo.WriteString(string(upstream)) - logrus.Debugf("trans https info is %v", *httpsInfo) + logrus.Debugf("trans https info is %v", string(httpsInfo.Bytes())) pha.UpStream = httpsInfo.Bytes() } n.pHTTPDomain(ads.Domain, pha)