From ab749cb035a6d478455ea34243babcf5f37a39be Mon Sep 17 00:00:00 2001 From: Toby Chui Date: Sat, 1 Nov 2025 14:52:49 +0800 Subject: [PATCH] Remove debug print statements from SetCertAsDefault Eliminated unnecessary fmt.Println calls in the SetCertAsDefault method to clean up console output and improve code clarity. --- src/mod/tlscert/handler.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mod/tlscert/handler.go b/src/mod/tlscert/handler.go index 99b83a4..8587814 100644 --- a/src/mod/tlscert/handler.go +++ b/src/mod/tlscert/handler.go @@ -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)