Slight Performance improvements with Logging #67
4
Makefile
4
Makefile
@ -67,6 +67,7 @@ unit-test-local:
|
|||||||
go fmt ./...
|
go fmt ./...
|
||||||
$(GINKGO) -r --label-filter unit \
|
$(GINKGO) -r --label-filter unit \
|
||||||
--randomize-all --randomize-suites \
|
--randomize-all --randomize-suites \
|
||||||
|
--flake-attempts=3 \
|
||||||
--fail-on-pending --keep-going \
|
--fail-on-pending --keep-going \
|
||||||
--trace
|
--trace
|
||||||
|
|
||||||
@ -75,7 +76,8 @@ unit-test-ci:
|
|||||||
go vet ./...
|
go vet ./...
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
$(GINKGO) -r --label-filter unit \
|
$(GINKGO) -r --label-filter unit \
|
||||||
--randomize-all --randomize-suites \
|
--randomize-all --randomize-suites
|
||||||
|
--flake-attempts=3 \
|
||||||
--fail-on-pending --keep-going \
|
--fail-on-pending --keep-going \
|
||||||
--cover --coverprofile=cover.profile \
|
--cover --coverprofile=cover.profile \
|
||||||
--trace --json-report=report.json
|
--trace --json-report=report.json
|
||||||
|
@ -5,19 +5,20 @@ echo "Starting ipld-eth-beacon-indexer"
|
|||||||
|
|
||||||
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json > /root/ipld-eth-beacon-indexer.output
|
echo /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json > /root/ipld-eth-beacon-indexer.output
|
||||||
|
|
||||||
exec /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json > /root/ipld-eth-beacon-indexer.output
|
if [ ${CAPTURE_MODE} == "boot" ]; then
|
||||||
|
/root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json > /root/ipld-eth-beacon-indexer.output
|
||||||
rv=$?
|
rv=$?
|
||||||
|
|
||||||
if [ $rv != 0 ]; then
|
if [ $rv != 0 ]; then
|
||||||
echo "ipld-eth-beacon-indexer failed"
|
echo "ipld-eth-beacon-indexer boot failed"
|
||||||
echo $rv > /root/HEALTH
|
|
||||||
echo $rv
|
|
||||||
cat /root/ipld-eth-beacon-indexer.output
|
|
||||||
else
|
else
|
||||||
echo "ipld-eth-beacon-indexer succeeded"
|
echo "ipld-eth-beacon-indexer boot succeeded"
|
||||||
|
fi
|
||||||
echo $rv > /root/HEALTH
|
echo $rv > /root/HEALTH
|
||||||
echo $rv
|
echo $rv
|
||||||
cat /root/ipld-eth-beacon-indexer.output
|
cat /root/ipld-eth-beacon-indexer.output
|
||||||
fi
|
|
||||||
|
|
||||||
tail -f /dev/null
|
tail -f /dev/null
|
||||||
|
else
|
||||||
|
exec /root/ipld-eth-beacon-indexer capture ${CAPTURE_MODE} --config /root/ipld-eth-beacon-config.json > /root/ipld-eth-beacon-indexer.output
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user