Expose server name as environment variable. Add more logging