Allow console to be disabled by setting an environment variable