Skip to content

Commit c8c344e

Browse files
committed
Add Failed authentication attempt warning
1 parent 465a7f4 commit c8c344e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/auth/httpsign.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ func (h *HTTPSign) Verify(req *http.Request, w http.ResponseWriter, store DataSt
5757

5858
validpk, err := VerifyCert(req)
5959
if err != nil {
60-
log.Error("VerifyCert failed: %v", err)
60+
log.Warn("Failed authentication attempt from %s", req.RemoteAddr)
61+
log.Error("VerifyCert failed: %v", err)
6162
return nil
6263
}
6364

0 commit comments

Comments
 (0)