Improve logging of active environment in CLI
This is a follow-up from this thread in the initial default_environment MR.
Currently, a log line like this:
2022-04-04T21:24:48.976998Z [info ] No environment is active
is emitted whenever --no-environment
or --environment=null
flags are provided. However there is a third scenario in which no environment is active, which is when no environment is provided via flag or environment variable and there is no default_environment
found in meltano.yml
. For consistency, we should emit the same log line in this scenario as well.
We also currently allow users to set default_environment: null
in their meltano.yml
. We would like to discourage this practice by emitting a warning
log line whenever the default_environment
is set in this way.