Commit bc20b9e5d508eff5fd4dc3a84887d372a11b6fc7

Authored by Marko Tikvić
1 parent 31ebd1bdef
Exists in master

new stuff

Showing 2 changed files with 3 additions and 4 deletions   Show diff stats
... ... @@ -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 ...
... ...
... ... @@ -12,7 +12,6 @@ import (
12 12 )
13 13  
14 14 const dateTimeFormat = "2006-01-02 15:04:05"
15   -const thisFile = ""
16 15  
17 16 // Block ...
18 17 const (
... ...