Skip to content

Commit

Permalink
Merge pull request #18 from Clever/heartbeat-logs
Browse files Browse the repository at this point in the history
add log on successful heartbeat
  • Loading branch information
rgarcia authored Dec 6, 2017
2 parents f8868bb + 6bb0635 commit 0c0de61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/sfncli/sfncli.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ func sendTaskHeartbeat(ctx context.Context, sfnapi sfniface.SFNAPI, token string
// context was canceled while sending heartbeat
return nil
}
log.ErrorD("heartbeat-error-unknown", logger.M{"error": err.Error()}) // keep trying on unknown errors
log.ErrorD("heartbeat-error-unknown", logger.M{"error": err.Error()}) // should investigate unknown/unclassified errors
}
log.Info("heartbeat-sent")
return nil
}

Expand Down

0 comments on commit 0c0de61

Please sign in to comment.