print out error logs if app init failed