Skip to content

Commit

Permalink
chore: removed the the login attempt log commented line to makes the …
Browse files Browse the repository at this point in the history
…code cleaner and more focused
  • Loading branch information
jiongxuan authored and hacdias committed Oct 12, 2024
1 parent 74b514c commit a698e31
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a698e31

Please sign in to comment.