docs: Regenerate docs helper

This commit is contained in:
Bjørn Erik Pedersen
2021-06-08 18:52:38 +02:00
parent 162f41d0ef
commit a91cd7652f
2 changed files with 57 additions and 4 deletions

View File

@@ -25,7 +25,11 @@ import (
// New returns a new instance of the fmt-namespaced template functions.
func New(d *deps.Deps) *Namespace {
ignorableLogger := d.Log.(loggers.IgnorableLogger)
ignorableLogger, ok := d.Log.(loggers.IgnorableLogger)
if !ok {
ignorableLogger = loggers.NewIgnorableLogger(d.Log)
}
distinctLogger := helpers.NewDistinctLogger(d.Log)
ns := &Namespace{
distinctLogger: ignorableLogger.Apply(distinctLogger),