Suppress redis logs, separate file with redis config
This commit is contained in:
parent
2fa0a50d61
commit
5413a3e7a1
|
@ -12,7 +12,10 @@ echo "Resetting block in redis"
|
|||
docker network create redis_net > /dev/null 2>&1 || true
|
||||
docker kill redis > /dev/null 2>&1 || true
|
||||
docker rm redis > /dev/null 2>&1 || true
|
||||
docker run --rm --network redis_net -d --name redis -v "$PWD/validator$N/$TARGET_NETWORK/db:/data" redis:5.0.5-alpine > /dev/null 2>&1 || true
|
||||
docker run --rm --network redis_net -d --name redis \
|
||||
-v "`pwd`/validator$N/$TARGET_NETWORK/db:/data" \
|
||||
-v "`dirname "$(pwd)"`/src/oracle/configs/redis.conf:/usr/local/etc/redis/redis.conf" \
|
||||
redis:5.0.5-alpine > /dev/null 2>&1 || true
|
||||
|
||||
../src/oracle/scripts/resetToBlock/run.sh redis_net $1
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
loglevel warning
|
|
@ -62,6 +62,8 @@ services:
|
|||
image: redis:5.0.5-alpine
|
||||
volumes:
|
||||
- '${PWD}/${TARGET_NETWORK}/db:/data'
|
||||
- './configs/redis.conf:/usr/local/etc/redis/redis.conf'
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
networks:
|
||||
- test_network
|
||||
rabbitmq:
|
||||
|
|
|
@ -66,6 +66,8 @@ services:
|
|||
image: redis:5.0.5-alpine
|
||||
volumes:
|
||||
- '${PWD}/${TARGET_NETWORK}/db:/data'
|
||||
- './configs/redis.conf:/usr/local/etc/redis/redis.conf'
|
||||
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||
networks:
|
||||
- redis-signer-net
|
||||
- redis-keygen-net
|
||||
|
|
|
@ -14,8 +14,8 @@ redis.on('connect', () => {
|
|||
logger.info('Connected to redis')
|
||||
})
|
||||
|
||||
redis.on('error', () => {
|
||||
logger.warn('Redis error')
|
||||
redis.on('error', e => {
|
||||
logger.warn('Redis error %o', e)
|
||||
})
|
||||
|
||||
module.exports = redis
|
||||
|
|
Loading…
Reference in New Issue