Commit feba660942faa38fad1bd3153ce2104865844c9a
1 parent
0adcd85023
Exists in
master
split line constant
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
main.go
... | ... | @@ -96,9 +96,10 @@ func (l *Logger) LogHTTPRequest(req *http.Request, userID string) string { |
96 | 96 | return b.String() |
97 | 97 | } |
98 | 98 | |
99 | +const splitLine = "==============================================================" | |
100 | + | |
99 | 101 | func (l *Logger) LogHTTPResponse(status int, duration time.Duration, size int) string { |
100 | - splitLine := "==============================================================\n" | |
101 | - return fmt.Sprintf("Response:\n%d %v %dB\n%s", status, duration, size, splitLine) | |
102 | + return fmt.Sprintf("Response:\n%d %v %dB\n%s\n", status, duration, size, splitLine) | |
102 | 103 | } |
103 | 104 | |
104 | 105 | func (l *Logger) CombineHTTPLogs(in string, out string) { | ... | ... |