Skip to content

Commit

Permalink
refactor(parser): change 'info' to 'debug' level for log messages
Browse files Browse the repository at this point in the history
Fixes bytesparadise#962

Signed-off-by: Xavier Coulon <[email protected]>
  • Loading branch information
xcoulon committed Mar 4, 2022
1 parent 6ddd7e6 commit 142a76f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/parser/document_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion pkg/parser/document_processing_parse_fragments.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
Expand Down

0 comments on commit 142a76f

Please sign in to comment.