Skip to content

Commit

Permalink
log before err
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Oct 10, 2024
1 parent ffa2602 commit fa53047
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/eth-rpc-adapter/scripts/health-check.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

HEALTH_CHECK_URL="http://localhost:8545"
MAX_ATTEMPTS=60
MAX_ATTEMPTS=30
INTERVAL=1

attempt=0
Expand All @@ -26,5 +26,7 @@ while [ $attempt -lt $MAX_ATTEMPTS ]; do
attempt=$((attempt+1))
done

pm2 logs eth-rpc

echo "❌ eth rpc failed to start in $MAX_ATTEMPTS seconds"
exit 1

0 comments on commit fa53047

Please sign in to comment.