diff --git a/http_logs.go b/http_logs.go index dad4fce..910898f 100644 --- a/http_logs.go +++ b/http_logs.go @@ -10,6 +10,8 @@ import ( "time" ) +const splitLine = "==============================================================" + // LogHTTPRequest ... func (l *Logger) LogHTTPRequest(req *http.Request, userID string) string { if userID == "" { @@ -40,11 +42,9 @@ func (l *Logger) LogHTTPRequest(req *http.Request, userID string) string { return b.String() } -const splitLine = "##############################################################" - // LogHTTPResponse ... func (l *Logger) LogHTTPResponse(status int, duration time.Duration, size int) string { - return fmt.Sprintf("Response:\n%d %v %dB\n%s\n", status, duration, size, splitLine) + return fmt.Sprintf("Response:\n%d %v %dB\n%s\n\n", status, duration, size, splitLine) } // CombineHTTPLogs ... diff --git a/main.go b/main.go index 7360305..5f731eb 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,6 @@ import ( ) const dateTimeFormat = "2006-01-02 15:04:05" -const thisFile = "" // Block ... const (