log errors to redis
This commit is contained in:
parent
92bc3bb0a8
commit
e5dd4b465f
@ -4,7 +4,7 @@ const { setSafeInterval } = require('./utils')
|
|||||||
const { httpRpcUrl, privateKey, minimumBalance, nativeCurrency, instances } = require('./config')
|
const { httpRpcUrl, privateKey, minimumBalance, nativeCurrency, instances } = require('./config')
|
||||||
|
|
||||||
const web3 = new Web3(httpRpcUrl)
|
const web3 = new Web3(httpRpcUrl)
|
||||||
const { redis } = require('modules/redis')
|
const { redis } = require('./modules/redis')
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
|
@ -6,7 +6,7 @@ const { redis } = require('./modules/redis')
|
|||||||
|
|
||||||
async function status(req, res) {
|
async function status(req, res) {
|
||||||
const health = await redis.hgetall('health')
|
const health = await redis.hgetall('health')
|
||||||
health.errorsLog = readRelayerErrors(redis)
|
health.errorsLog = await readRelayerErrors(redis)
|
||||||
const { waiting: currentQueue } = await queue.queue.getJobCounts()
|
const { waiting: currentQueue } = await queue.queue.getJobCounts()
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
const Web3 = require('web3')
|
const Web3 = require('web3')
|
||||||
const { GasPriceOracle } = require('gas-price-oracle')
|
const { GasPriceOracle } = require('gas-price-oracle')
|
||||||
const { toBN, toWei, fromWei, toHex } = require('web3-utils')
|
const { toBN, toWei, fromWei, toHex } = require('web3-utils')
|
||||||
const { redis } = require('modules/redis')
|
const { redis } = require('./modules/redis')
|
||||||
const proxyLightABI = require('../abis/proxyLightABI.json')
|
const proxyLightABI = require('../abis/proxyLightABI.json')
|
||||||
const { queue } = require('./queue')
|
const { queue } = require('./queue')
|
||||||
const { getInstance, fromDecimals, logRelayerError } = require('./utils')
|
const { getInstance, fromDecimals, logRelayerError } = require('./utils')
|
||||||
|
Loading…
Reference in New Issue
Block a user