Skip to content

Commit

Permalink
add: user-agent log to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mhrynenko committed May 19, 2024
1 parent fc8e6f6 commit 3803474
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ func CreateIdentity(w http.ResponseWriter, r *http.Request) {
ape.RenderErr(w, problems.InternalError())
return
}
log := Log(r).WithField("request_data", string(rawReqData))
log := Log(r).WithFields(logan.F{
"user-agent": r.Header.Get("User-Agent"),
"request_data": string(rawReqData),
})

algorithm := signatureAlgorithm(req.Data.DocumentSOD.Algorithm)
if algorithm == "" {
Expand Down

0 comments on commit 3803474

Please sign in to comment.