log errors to redis

This commit is contained in:
smart_ex 2022-04-11 14:19:48 +10:00 committed by Danil Kovtonyuk
parent 7d8a6dc30f
commit 92bc3bb0a8
2 changed files with 4 additions and 4 deletions

@ -1,4 +1,5 @@
const { controller, status } = require('./contollers')
const controller = require('./controller')
const status = require('./status')
const router = require('express').Router()
// Add CORS headers

@ -1,9 +1,8 @@
const queue = require('./queue')
const { netId, tornadoServiceFee, instances, redisUrl, rewardAccount } = require('./config')
const { netId, tornadoServiceFee, instances, rewardAccount } = require('./config')
const { version } = require('../package.json')
const Redis = require('ioredis')
const { readRelayerErrors } = require('./utils')
const redis = new Redis(redisUrl)
const { redis } = require('./modules/redis')
async function status(req, res) {
const health = await redis.hgetall('health')