From 5ecaf39e7d64994fb1ca99bdb78992983a03c12b Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Mon, 13 Feb 2017 16:26:01 -0500 Subject: [PATCH] even more error logging --- bots/claimbot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bots/claimbot.js b/bots/claimbot.js index 64749d9..85ed275 100644 --- a/bots/claimbot.js +++ b/bots/claimbot.js @@ -42,6 +42,8 @@ function init(slackbot_, channel_, rpcuser, rpcpassword, mongodburl) { 'pass': rpcpassword }); + console.log('Activating claimbot'); + setInterval(function () { announceNewClaims(); }, 60 * 1000); @@ -263,7 +265,7 @@ function setLastBlock(block) { function slackPost(text, params) { slackbot.postMessage(channel, text, params).fail(function (value) { - console.log('FAILED TO SLACK: ' + text + '. Params: ' + JSON.stringify(params) + "\nResponse: " + JSON.stringify(value)); + console.log('FAILED TO SLACK to ' + channel + '. Text: "' + text + '". Params: ' + JSON.stringify(params) + "\nResponse: " + JSON.stringify(value)); }); }