Use env for host; Slightly improve logging