Fixed log level, deleted commented code

This commit is contained in:
Mike Farah 2022-11-25 12:09:45 +11:00
parent 4478bd14c9
commit 51043770bf
2 changed files with 1 additions and 3 deletions

View File

@ -51,8 +51,6 @@ func loadYaml(filename string, decoder Decoder) (*CandidateNode, error) {
return &CandidateNode{Node: &yaml.Node{Kind: yaml.ScalarNode, Tag: "!!null"}}, nil return &CandidateNode{Node: &yaml.Node{Kind: yaml.ScalarNode, Tag: "!!null"}}, nil
} else if documents.Len() == 1 { } else if documents.Len() == 1 {
candidate := documents.Front().Value.(*CandidateNode) candidate := documents.Front().Value.(*CandidateNode)
log.Debug("first comment:", candidate.LeadingContent)
// candidate.Node.Content[0].Content[0].HeadComment = candidate.LeadingContent
return candidate, nil return candidate, nil
} else { } else {

View File

@ -31,7 +31,7 @@ type expressionScenario struct {
} }
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
logging.SetLevel(logging.DEBUG, "") logging.SetLevel(logging.ERROR, "")
Now = func() time.Time { Now = func() time.Time {
return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC) return time.Date(2021, time.May, 19, 1, 2, 3, 4, time.UTC)
} }