add debugging
This commit is contained in:
parent
ba258cae03
commit
469ac7329a
3 changed files with 4 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@ npm-debug.log
|
|||
claimTrieCache.json
|
||||
syncState.json
|
||||
yarn-error.log
|
||||
chainquery-config.json
|
||||
|
|
|
@ -12,8 +12,8 @@ require('winston-daily-rotate-file');
|
|||
// Setup logging
|
||||
winston.remove(winston.transports.Console);
|
||||
winston.add(winston.transports.Console, { colorize: true, timestamp: true, prettyPrint: true });
|
||||
var slackAPIKey = process.env.SLACK_HOOK_URL;
|
||||
var mySlack = new slack(slackAPIKey, {});
|
||||
let slackAPIKey = process.env.SLACK_HOOK_URL;
|
||||
let mySlack = new slack(slackAPIKey, {});
|
||||
// Create Koa Application
|
||||
const app = new Koa();
|
||||
|
||||
|
|
|
@ -207,6 +207,7 @@ function getClaimsSince (time, lastID, MaxClaimsInCall) {
|
|||
console.log(query);
|
||||
connection.query(query, function (err, results, fields) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
logErrorToSlack('[Importer] Error getting updated claims. ' + err);
|
||||
return reject(err);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue