Skip to content

Commit

Permalink
master: Log after sending msg
Browse files Browse the repository at this point in the history
  • Loading branch information
glynternet committed Nov 21, 2018
1 parent 9fc2b63 commit 8c398a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/oscli/cmd/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ var cmdSend = &cobra.Command{
host,
port,
)
err = client.Send(msg)
if err != nil {
return errors.Wrapf(err, "sending msg:%v using client:%v", *msg, *client)
}
addr := fmt.Sprintf("%s:%d", host, port)
fmt.Printf("sending to %s: %v\n", addr, msg)
return client.Send(msg)
return nil
},
}

Expand Down

0 comments on commit 8c398a2

Please sign in to comment.