Skip to content

Commit

Permalink
core: print error on output connect fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Dementiev authored and sparrc committed Jan 17, 2016
1 parent 37b96c1 commit a712036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (a *Agent) Connect() error {
}
err := o.Output.Connect()
if err != nil {
log.Printf("Failed to connect to output %s, retrying in 15s\n", o.Name)
log.Printf("Failed to connect to output %s, retrying in 15s, error was '%s' \n", o.Name, err)
time.Sleep(15 * time.Second)
err = o.Output.Connect()
if err != nil {
Expand Down

0 comments on commit a712036

Please sign in to comment.