add troubleshooting logs into deploy.sh