Skip to content

Commit

Permalink
Fixed log level, deleted commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
mikefarah committed Nov 25, 2022
1 parent 4478bd1 commit 5104377
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions pkg/yqlib/operator_load.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ func loadYaml(filename string, decoder Decoder) (*CandidateNode, error) {
return &CandidateNode{Node: &yaml.Node{Kind: yaml.ScalarNode, Tag: "!!null"}}, nil
} else if documents.Len() == 1 {
candidate := documents.Front().Value.(*CandidateNode)
log.Debug("first comment:", candidate.LeadingContent)
// candidate.Node.Content[0].Content[0].HeadComment = candidate.LeadingContent
return candidate, nil

} else {
Expand Down
2 changes: 1 addition & 1 deletion pkg/yqlib/operators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type expressionScenario struct {
}

func TestMain(m *testing.M) {
logging.SetLevel(logging.DEBUG, "")
logging.SetLevel(logging.ERROR, "")
Now = func() time.Time {
return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC)
}
Expand Down

0 comments on commit 5104377

Please sign in to comment.