Skip to content

Commit e9a67eb

Browse files
Add IP address to login errors (#5760)
1 parent 2ec264e commit e9a67eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/session.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func handleLoginPost() http.HandlerFunc {
8181
err := manager.GetInstance().SessionStore.Login(w, r)
8282
if err != nil {
8383
// always log the error
84-
logger.Errorf("Error logging in: %v", err)
84+
logger.Errorf("Error logging in: %v from IP: %s", err, r.RemoteAddr)
8585
}
8686

8787
var invalidCredentialsError *session.InvalidCredentialsError

0 commit comments

Comments
 (0)