Remove debug print statements from SetCertAsDefault

Eliminated unnecessary fmt.Println calls in the SetCertAsDefault method to clean up console output and improve code clarity.
This commit is contained in:
Toby Chui
2025-11-01 14:52:49 +08:00
parent ca37a4c7c7
commit ab749cb035

View File

@@ -100,9 +100,7 @@ func (m *Manager) SetCertAsDefault(w http.ResponseWriter, r *http.Request) {
originalPemName := filepath.Join(m.CertStore, domainToFilename(cert.Subject.CommonName, "pem"))
originalJSONName := filepath.Join(m.CertStore, domainToFilename(cert.Subject.CommonName, "json"))
fmt.Println(defaultPubKey, originalPemName)
os.Rename(defaultPubKey, originalPemName)
fmt.Println(defaultPriKey, originalKeyName)
os.Rename(defaultPriKey, originalKeyName)
if utils.FileExists(defaultJSON) {
os.Rename(defaultJSON, originalJSONName)