Skip to content
Snippets Groups Projects
Commit 3fe40215 authored by Jan Semmelink's avatar Jan Semmelink
Browse files

Update

parent 663bec4f
No related branches found
No related tags found
1 merge request!7Restructure and improved logs and audit
...@@ -91,10 +91,10 @@ func LogIncomingAPIRequest(startTime time.Time, req events.APIGatewayProxyReques ...@@ -91,10 +91,10 @@ func LogIncomingAPIRequest(startTime time.Time, req events.APIGatewayProxyReques
//todo: filter out sensitive values (e.g. OTP) //todo: filter out sensitive values (e.g. OTP)
if _, err := queues.NewEvent(service.Ctx, "API_LOGS"). if _, err := queues.NewEvent(service.Ctx, "API_LOGS").
Type("incoming-api-log"). Type("api-log").
RequestID(apiLog.RequestID). RequestID(apiLog.RequestID).
Send(apiLog); err != nil { Send(apiLog); err != nil {
return errors.Wrapf(err, "failed to send incoming-api-log") return errors.Wrapf(err, "failed to send api-log")
} }
return nil return nil
} //LogIncomingAPIRequest() } //LogIncomingAPIRequest()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment