feat: route more warnings to the configured Logger

Three categories of warnings were still written through logrus although a
Logger was configured:

- a deprecated `external.name`, raised while making the model canonical:
  transform.CanonicalWithLogger reports it to the logger, Canonical keeps
  writing through logrus;
- an unset variable referenced by a .env or by the env_file of an include:
  dotenv.GetEnvFromFileWithLogger reports it to the logger, GetEnvFromFile
  keeps writing through logrus. cli.WithDotEnv and include use it with the
  configured logger;
- a YAML 1.1 boolean in an x-* extension, now decoded with the logger of the
  options, as the include entries are (they have no boolean attribute yet).

The warnings of the env_file of a service, resolved by
Project.WithServicesEnvironmentResolved, and of paths.ExpandUser when HOME is
missing remain on logrus: routing them would need more variants of exported
functions. The doc-comments of Options.Logger and cli.WithLogger list them.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2026-10-22 19:41:07 +02:00 • committed by Nicolas De loof
commit 0a2be5ddfe
12 changed files with 449 additions and 27 deletions