mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
log errors to redis
This commit is contained in:
parent
7d8a6dc30f
commit
92bc3bb0a8
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user