From a0fa473a7c13ed2e63dc530020fca0a6ed95299f Mon Sep 17 00:00:00 2001 From: Cyril David Date: Fri, 22 Jan 2021 11:29:02 -0800 Subject: [PATCH] Fix logs writer --- internal/display/logs.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/display/logs.go b/internal/display/logs.go index 38edf64b5..172f0e346 100644 --- a/internal/display/logs.go +++ b/internal/display/logs.go @@ -22,7 +22,7 @@ func (r *Renderer) LogList(logs []*management.Log) { } fmt.Fprintf( - r.Writer, + r.ResultWriter, "[%s] (%s) client_name=%q client_id=%q", l.Date.Format(time.RFC3339), logType, @@ -35,7 +35,7 @@ func (r *Renderer) LogList(logs []*management.Log) { userAgent, _ := reqMap["userAgent"].(string) if userAgent != "" { fmt.Fprintf( - r.Writer, + r.ResultWriter, " user_agent=%q", userAgent, ) @@ -47,13 +47,13 @@ func (r *Renderer) LogList(logs []*management.Log) { errType, _ := errMap["type"].(string) if errType != "" || errMsg != "" { fmt.Fprintf( - r.Writer, + r.ResultWriter, " error_type=%q error_message=%q", errType, errMsg, ) } - fmt.Fprint(r.Writer, "\n") + fmt.Fprint(r.ResultWriter, "\n") } }