diff --git a/pkg/yqlib/operator_load.go b/pkg/yqlib/operator_load.go index 51af1994..7d083d5b 100644 --- a/pkg/yqlib/operator_load.go +++ b/pkg/yqlib/operator_load.go @@ -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 { diff --git a/pkg/yqlib/operators_test.go b/pkg/yqlib/operators_test.go index f3363dc6..79757895 100644 --- a/pkg/yqlib/operators_test.go +++ b/pkg/yqlib/operators_test.go @@ -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) }