Skip to content

Commit

Permalink
Update #542 Improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
albinpa authored and georgepadayatti committed Nov 14, 2023
1 parent 9b74636 commit 3b9305c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/middleware/log_api_calls.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func LogApiCalls() Middleware {
return func(w http.ResponseWriter, r *http.Request) {

organisationId := r.Header.Get(config.OrganizationId)
aLog := fmt.Sprintf("Organization API: %v called by user: %v", r.URL.Path, token.GetUserName(r))
aLog := fmt.Sprintf("%v: %v called by user: %v", r.Method, r.URL.Path, token.GetUserID(r))
actionlog.LogOrgAPICalls(token.GetUserID(r), token.GetUserName(r), organisationId, aLog)

// Call the next middleware/handler in chain
Expand Down

0 comments on commit 3b9305c

Please sign in to comment.