From ed6549a3365b468fba5865eed219826e8cf9366b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Wed, 27 Jun 2018 09:16:13 +0200 Subject: [PATCH] minor output format changes --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 0a8b255..430e6ec 100644 --- a/main.go +++ b/main.go @@ -107,14 +107,14 @@ func (l *Logger) RequestLog(req *http.Request, userid string) string { return msg } -func (l *Logger) ResponseLog(status int, duration time.Duration) string { +func (l *Logger) ResponseLog(status int, duration time.Duration, size int64) string { if l.outputFile == nil { return "" } var b strings.Builder - fmt.Fprintf(&b, "Response: %d %v\n", status, duration) - b.WriteString("==============================================================\n\n") + fmt.Fprintf(&b, "Response:\n%d %v %dB\n", status, duration, size) + b.WriteString("==============================================================\n") msg := b.String() return msg -- 1.8.1.2