mirror of
https://github.com/compose-spec/compose-go.git
synced 2026-11-24 20:00:00 +00:00
template: let callers route the unset variable warning to a logger
Add a logging.Logger contract and a template.WithLogger option. Without the option, the warning is still written through the standard logrus logger, unchanged. Default values and error messages carried by a substitution, as well as the text following a braced expression, report to the same logger as the outer substitution. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
4b8c5f0940
commit
414395c352
4 changed files with 248 additions and 28 deletions
Loading…
Add table
Add a link
Reference in a new issue