summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-29 22:03:07 +0000
committerNick White <git@njw.name>2019-10-29 22:03:07 +0000
commit9789666a4f6d30b07ce0c1ec3b06987c5a920d7b (patch)
tree2e5c984bffdc483f916e6d5d17a1ac6d4917a16b
parent81e2a0e6da84bec5f4577ac67c7d9fa6804a6773 (diff)
Print heartbeat error on failure
-rw-r--r--cmd/bookpipeline/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go
index 3f8303f..0ed0d67 100644
--- a/cmd/bookpipeline/main.go
+++ b/cmd/bookpipeline/main.go
@@ -256,6 +256,7 @@ func heartbeat(conn Pipeliner, t *time.Ticker, msg bookpipeline.Qmsg, queue stri
m, err := conn.QueueHeartbeat(currentmsg, queue, HeartbeatTime*2)
if err != nil {
// This is for better debugging of the heartbeat issue
+ conn.GetLogger().Println("Error with heartbeat", err)
os.Exit(1)
// TODO: would be better to ensure this error stops any running
// processes, as they will ultimately fail in the case of