mirror of
https://github.com/compose-spec/compose-go.git
synced 2026-11-24 20:00:00 +00:00
Routing the warnings to a logging.Logger given by the caller cannot be complete without new variants of the exported functions that warn (dotenv, types.Project, paths...), and doubling the exported API for it is a bigger cost than the benefit. The warnings are written to the standard logrus logger again, as they were before the Logger option. This reverts, in order: -0a2be5dfeat: route more warnings to the configured Logger -85a97c0cli: add WithLogger to route project discovery and loading warnings -0481a82loader: add Options.Logger to route loading warnings -414395ctemplate: let callers route the unset variable warning to a logger ande24266atemplate: WithoutLogging also silences nested substitutions, which only made sense with the Logger option: template.go goes back to its state before414395c, and the fuzz test of the template package to its state beforee24266a. The version conformance test now reads the warning from the standard logrus logger instead of Options.Logger. The type casts of the interpolation stay built for each load, as they have been while the Logger option existed, rather than shared again through a package level map that a caller could alter for every other load. None of these commits belongs to a release. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
296 lines
6.9 KiB
296 lines
6.9 KiB