Add more context information to auth failed log

Entire-Checkpoint: 2187cd89cb78
This commit is contained in:
2026-03-18 06:56:01 +01:00
parent 8b132ed7f8
commit 6ebc9e88fa

View File

@@ -421,7 +421,7 @@ func (auth *Authentication) Auth(
return return
} }
cclog.Info("auth -> authentication failed") cclog.Infof("auth -> authentication failed: no valid session or JWT for %s %s from %s", r.Method, r.URL.Path, r.RemoteAddr)
onfailure(rw, r, errors.New("unauthorized (please login first)")) onfailure(rw, r, errors.New("unauthorized (please login first)"))
}) })
} }