Skip to content

Commit

Permalink
Fix logs writer
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Jan 22, 2021
1 parent e7d1fb3 commit a0fa473
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/display/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
)
Expand All @@ -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")
}
}

0 comments on commit a0fa473

Please sign in to comment.