File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ type requestLog struct {
2121 LogLevel string `json:"level"`
2222 ClientIP string `json:"client_ip"`
2323 Timestamp string `json:"timestamp"`
24- HttpMethod string `json:"method"`
25- HttpPath string `json:"path"`
24+ HTTPMethod string `json:"method"`
25+ HTTPPath string `json:"path"`
2626 Protocol string `json:"proto"`
27- HttpStatus int `json:"status"`
27+ HTTPStatus int `json:"status"`
2828 Latency time.Duration `json:"latency"`
2929 UserAgent string `json:"user-agent"`
3030 ErrorMessage error `json:"error-message"`
@@ -65,10 +65,10 @@ func New(application application.Application) *RegistrationServer {
6565 LogLevel : "info" ,
6666 ClientIP : v .RemoteIP ,
6767 Timestamp : time .Now ().Format (time .RFC3339 ),
68- HttpMethod : v .Method ,
69- HttpPath : v .URI ,
68+ HTTPMethod : v .Method ,
69+ HTTPPath : v .URI ,
7070 Protocol : v .Protocol ,
71- HttpStatus : v .Status ,
71+ HTTPStatus : v .Status ,
7272 Latency : v .Latency ,
7373 UserAgent : v .UserAgent ,
7474 ErrorMessage : v .Error ,
You can’t perform that action at this time.
0 commit comments