even more error logging
This commit is contained in:
parent
29dffdf297
commit
5ecaf39e7d
1 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,8 @@ function init(slackbot_, channel_, rpcuser, rpcpassword, mongodburl) {
|
||||||
'pass': rpcpassword
|
'pass': rpcpassword
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log('Activating claimbot');
|
||||||
|
|
||||||
setInterval(function () {
|
setInterval(function () {
|
||||||
announceNewClaims();
|
announceNewClaims();
|
||||||
}, 60 * 1000);
|
}, 60 * 1000);
|
||||||
|
@ -263,7 +265,7 @@ function setLastBlock(block) {
|
||||||
|
|
||||||
function slackPost(text, params) {
|
function slackPost(text, params) {
|
||||||
slackbot.postMessage(channel, text, params).fail(function (value) {
|
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));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue