Skip to content

Commit b3a910e

Browse files
committed
request payload place changed to be printed at last
1 parent 27ad4e0 commit b3a910e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/util/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ func (impl LoggingMiddlewareImpl) LoggingMiddleware(next http.Handler) http.Hand
7070
}
7171

7272
func LogRequest(auditLogDto *AuditLoggerDTO) {
73-
log.Printf("AUDIT_LOG: urlPath: %s, queryParams: %s, requestPayload: %s,updatedBy: %s, updatedOn: %s, apiResponseCode: %d", auditLogDto.UrlPath, auditLogDto.QueryParams, auditLogDto.RequestPayload, auditLogDto.UserEmail, auditLogDto.UpdatedOn, auditLogDto.ApiResponseCode)
73+
log.Printf("AUDIT_LOG: urlPath: %s, queryParams: %s,updatedBy: %s, updatedOn: %s, apiResponseCode: %d,requestPayload: %s", auditLogDto.UrlPath, auditLogDto.QueryParams, auditLogDto.UserEmail, auditLogDto.UpdatedOn, auditLogDto.ApiResponseCode, auditLogDto.RequestPayload)
7474
}

0 commit comments

Comments
 (0)