From a698e31cb436c7497fe20d078df9d994aadd6df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=82=AF=E8=BD=A9?= Date: Sat, 12 Oct 2024 19:29:26 +0800 Subject: [PATCH] chore: removed the the login attempt log commented line to makes the code cleaner and more focused --- lib/handler.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/handler.go b/lib/handler.go index 63e5558..7915cf3 100644 --- a/lib/handler.go +++ b/lib/handler.go @@ -89,8 +89,6 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // Gets the correct user for this request. username, password, ok := r.BasicAuth() - // Removed the login attempt log to reduce log volume and focus on final verification results - // zap.L().Info("login attempt", zap.String("username", username), zap.String("remote_address", remoteAddr)) if !ok { http.Error(w, "Not authorized", http.StatusUnauthorized) return