From bc20b9e5d508eff5fd4dc3a84887d372a11b6fc7 Mon Sep 17 00:00:00 2001 From: "marko.tikvic" Date: Wed, 26 Feb 2020 09:45:45 +0100 Subject: [PATCH] new stuff --- http_logs.go | 6 +++--- main.go | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) 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 ( -- 1.8.1.2