Commit bc20b9e5d508eff5fd4dc3a84887d372a11b6fc7
1 parent
31ebd1bdef
Exists in
master
new stuff
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
http_logs.go
... | ... | @@ -10,6 +10,8 @@ import ( |
10 | 10 | "time" |
11 | 11 | ) |
12 | 12 | |
13 | +const splitLine = "==============================================================" | |
14 | + | |
13 | 15 | // LogHTTPRequest ... |
14 | 16 | func (l *Logger) LogHTTPRequest(req *http.Request, userID string) string { |
15 | 17 | if userID == "" { |
... | ... | @@ -40,11 +42,9 @@ func (l *Logger) LogHTTPRequest(req *http.Request, userID string) string { |
40 | 42 | return b.String() |
41 | 43 | } |
42 | 44 | |
43 | -const splitLine = "##############################################################" | |
44 | - | |
45 | 45 | // LogHTTPResponse ... |
46 | 46 | func (l *Logger) LogHTTPResponse(status int, duration time.Duration, size int) string { |
47 | - return fmt.Sprintf("Response:\n%d %v %dB\n%s\n", status, duration, size, splitLine) | |
47 | + return fmt.Sprintf("Response:\n%d %v %dB\n%s\n\n", status, duration, size, splitLine) | |
48 | 48 | } |
49 | 49 | |
50 | 50 | // CombineHTTPLogs ... | ... | ... |