Added async post command to README.

This commit is contained in:
Travis Reeder
2016-10-12 14:13:46 -07:00
parent df9343f5ed
commit 3e443e604c
7 changed files with 15 additions and 95 deletions

View File

@@ -136,7 +136,7 @@ func startAsyncRunners(ctx context.Context, wg *sync.WaitGroup, i int, url strin
task, err := getTask(ctx, url)
if err != nil {
if err, ok := err.(net.Error); ok && err.Timeout() {
log.Infoln("Could not fetch task, timeout. Probably no tasks to run.")
log.WithError(err).Errorln("Could not fetch task, timeout.")
continue
}
log.WithError(err).Error("Could not fetch task")