Browse Source

[test_integrations] enable logs from peers by default (Refs #829)

pull/834/head
Anton Kaliaev 7 years ago
parent
commit
432a7276e2
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 17 additions and 31 deletions
  1. +12
    -24
      test/p2p/peer.sh
  2. +5
    -7
      test/test.sh

+ 12
- 24
test/p2p/peer.sh View File

@ -14,27 +14,15 @@ set +eu
echo "starting tendermint peer ID=$ID" echo "starting tendermint peer ID=$ID"
# start tendermint container on the network # start tendermint container on the network
if [[ "$CIRCLECI" == true ]]; then
set -u
docker run -d \
--net="$NETWORK_NAME" \
--ip=$(test/p2p/ip.sh $ID) \
--name "local_testnet_$ID" \
--entrypoint tendermint \
-e TMHOME="/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core" \
--log-driver=syslog \
--log-opt syslog-address=udp://127.0.0.1:5514 \
--log-opt syslog-facility=daemon \
--log-opt tag="{{.Name}}" \
"$DOCKER_IMAGE" node $NODE_FLAGS --log_level=debug --proxy_app="$APP_PROXY"
else
set -u
docker run -d \
--net="$NETWORK_NAME" \
--ip=$(test/p2p/ip.sh $ID) \
--name "local_testnet_$ID" \
--entrypoint tendermint \
-e TMHOME="/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core" \
"$DOCKER_IMAGE" node $NODE_FLAGS --log_level=info --proxy_app="$APP_PROXY"
fi
set -u
docker run -d \
--net="$NETWORK_NAME" \
--ip=$(test/p2p/ip.sh "$ID") \
--name "local_testnet_$ID" \
--entrypoint tendermint \
-e TMHOME="/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core" \
--log-driver=syslog \
--log-opt syslog-address=udp://127.0.0.1:5514 \
--log-opt syslog-facility=daemon \
--log-opt tag="{{.Name}}" \
"$DOCKER_IMAGE" node "$NODE_FLAGS" --log_level=debug --proxy_app="$APP_PROXY"

+ 5
- 7
test/test.sh View File

@ -18,14 +18,12 @@ echo "* [$(date +"%T")] removing run_test container"
docker rm -vf run_test docker rm -vf run_test
set -e set -e
set +u
if [[ "$CIRCLECI" == true ]]; then
echo
echo "* [$(date +"%T")] starting rsyslog container"
docker rm -f rsyslog || true
docker run -d -v "$LOGS_DIR:/var/log/" -p 127.0.0.1:5514:514/udp --name rsyslog voxxit/rsyslog
fi
echo
echo "* [$(date +"%T")] starting rsyslog container"
docker rm -f rsyslog || true
docker run -d -v "$LOGS_DIR:/var/log/" -p 127.0.0.1:5514:514/udp --name rsyslog voxxit/rsyslog
set +u
if [[ "$SKIP_BUILD" == "" ]]; then if [[ "$SKIP_BUILD" == "" ]]; then
echo echo
echo "* [$(date +"%T")] building docker image" echo "* [$(date +"%T")] building docker image"


Loading…
Cancel
Save