Skip to content

Commit 5104377

Browse files
committed
Fixed log level, deleted commented code
1 parent 4478bd1 commit 5104377

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pkg/yqlib/operator_load.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ func loadYaml(filename string, decoder Decoder) (*CandidateNode, error) {
5151
return &CandidateNode{Node: &yaml.Node{Kind: yaml.ScalarNode, Tag: "!!null"}}, nil
5252
} else if documents.Len() == 1 {
5353
candidate := documents.Front().Value.(*CandidateNode)
54-
log.Debug("first comment:", candidate.LeadingContent)
55-
// candidate.Node.Content[0].Content[0].HeadComment = candidate.LeadingContent
5654
return candidate, nil
5755

5856
} else {

pkg/yqlib/operators_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type expressionScenario struct {
3131
}
3232

3333
func TestMain(m *testing.M) {
34-
logging.SetLevel(logging.DEBUG, "")
34+
logging.SetLevel(logging.ERROR, "")
3535
Now = func() time.Time {
3636
return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC)
3737
}

0 commit comments

Comments
 (0)