Added logging for environment to assist in troubleshooting.