core: print error on output connect fail

closes #537
This commit is contained in:
Eugene Dementiev 2016-01-15 15:36:41 +03:00 committed by Cameron Sparr
parent 37b96c192b
commit a712036b56
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func (a *Agent) Connect() error {
} }
err := o.Output.Connect() err := o.Output.Connect()
if err != nil { 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) time.Sleep(15 * time.Second)
err = o.Output.Connect() err = o.Output.Connect()
if err != nil { if err != nil {