diff options
Diffstat (limited to 'resources/page/pagemeta/page_frontmatter.go')
-rw-r--r-- | resources/page/pagemeta/page_frontmatter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/page/pagemeta/page_frontmatter.go b/resources/page/pagemeta/page_frontmatter.go index 7b9f13e62..5033d70b7 100644 --- a/resources/page/pagemeta/page_frontmatter.go +++ b/resources/page/pagemeta/page_frontmatter.go @@ -38,7 +38,7 @@ type FrontMatterHandler struct { // A map of all date keys configured, including any custom. allDateKeys map[string]bool - logger *loggers.Logger + logger loggers.Logger } // FrontMatterDescriptor describes how to handle front matter for a given Page. @@ -148,7 +148,7 @@ func (f FrontMatterHandler) newChainedFrontMatterFieldHandler(handlers ...frontM // First successful handler wins. success, err := h(d) if err != nil { - f.logger.ERROR.Println(err) + f.logger.Errorln(err) } else if success { return true, nil } @@ -262,7 +262,7 @@ func toLowerSlice(in interface{}) []string { // NewFrontmatterHandler creates a new FrontMatterHandler with the given logger and configuration. // If no logger is provided, one will be created. -func NewFrontmatterHandler(logger *loggers.Logger, cfg config.Provider) (FrontMatterHandler, error) { +func NewFrontmatterHandler(logger loggers.Logger, cfg config.Provider) (FrontMatterHandler, error) { if logger == nil { logger = loggers.NewErrorLogger() |