From 51043770bf19f781d3d724525bfeb608b5e9bd44 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Fri, 25 Nov 2022 12:09:45 +1100 Subject: [PATCH] Fixed log level, deleted commented code --- pkg/yqlib/operator_load.go | 2 -- pkg/yqlib/operators_test.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/yqlib/operator_load.go b/pkg/yqlib/operator_load.go index 51af19945ce..7d083d5b8fa 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 f3363dc6dea..7975789525f 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) }