Skip to content

Commit

Permalink
Merge pull request #20 from rarimo/debug/add-log
Browse files Browse the repository at this point in the history
Add: debug request log
  • Loading branch information
mhrynenko authored May 27, 2024
2 parents fc0b26d + b67f931 commit 89c3d20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/service/api/handlers/create_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func CreateIdentity(w http.ResponseWriter, r *http.Request) {
"request_data": string(rawReqData),
})

log.Debug("created identity request")

algorithm := signatureAlgorithm(req.Data.DocumentSOD.Algorithm)
if algorithm == "" {
log.WithError(fmt.Errorf("%s is not a valid algorithm", req.Data.DocumentSOD.Algorithm)).Error("failed to select signature algorithm")
Expand Down

0 comments on commit 89c3d20

Please sign in to comment.