Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
feat: add stream message to verbose mode
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Tiare Le Bigot <[email protected]>
  • Loading branch information
Jean-Tiare Le Bigot committed Sep 29, 2015
1 parent b136f1e commit 351f739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ func DisplayStream(buffer io.ReadCloser) error {

for {
line, err := reader.ReadBytes('\n')
if Verbose {
fmt.Fprintf(os.Stderr, "Received message: %v\n", string(line))
}
m := DecodeMessage(line)
if m != nil {
fmt.Fprintln(os.Stderr, m.Message)
Expand Down

0 comments on commit 351f739

Please sign in to comment.