From 40a829a0a6e3937d10780e34f8268ac9cee35493 Mon Sep 17 00:00:00 2001 From: Xavier Coulon Date: Fri, 4 Mar 2022 18:52:39 +0100 Subject: [PATCH] refactor(parser): change 'info' to 'debug' level for log messages (#965) Fixes #962 Signed-off-by: Xavier Coulon --- pkg/parser/document_processing.go | 4 ++-- pkg/parser/document_processing_parse_fragments.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/parser/document_processing.go b/pkg/parser/document_processing.go index 4dd60231..8042d666 100644 --- a/pkg/parser/document_processing.go +++ b/pkg/parser/document_processing.go @@ -38,8 +38,8 @@ func ParseDocument(r io.Reader, config *configuration.Configuration, opts ...Opt if len(footnotes.Notes) > 0 { doc.Footnotes = footnotes.Notes } - if log.IsLevelEnabled(log.InfoLevel) { - log.Infof("parsed document:\n%s", spew.Sdump(doc)) + if log.IsLevelEnabled(log.DebugLevel) { + log.Debugf("parsed document:\n%s", spew.Sdump(doc)) } return doc, nil } diff --git a/pkg/parser/document_processing_parse_fragments.go b/pkg/parser/document_processing_parse_fragments.go index d81a51a1..6d80d5e4 100644 --- a/pkg/parser/document_processing_parse_fragments.go +++ b/pkg/parser/document_processing_parse_fragments.go @@ -76,7 +76,7 @@ func ParseFragments(ctx *ParseContext, source io.Reader, done <-chan interface{} } select { case <-done: - log.Info("exiting the document parsing routine") + log.Debug("exiting the document parsing routine") break parsing // stops/exits the go routine case resultStream <- f: }