From 30206323645f7d7bcb3aaec4d81158ba19f51a33 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 26 Dec 2023 06:52:29 -0600 Subject: [PATCH] Add debug for current term resolution --- term.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/term.go b/term.go index 3fbf3a2..9435d9d 100644 --- a/term.go +++ b/term.go @@ -5,6 +5,8 @@ import ( "strconv" "time" _ "time/tzdata" + + "github.com/rs/zerolog/log" ) // Term selection should yield smart results based on the current time, as well as the input provided. @@ -36,6 +38,9 @@ func init() { } SpringRange, SummerRange, FallRange = GetYearDayRange(uint16(time.Now().Year())) + + currentTerm, nextTerm := GetCurrentTerm(time.Now()) + log.Debug().Str("CurrentTerm", fmt.Sprintf("%+v", currentTerm)).Str("NextTerm", fmt.Sprintf("%+v", nextTerm)).Msg("GetCurrentTerm") } type YearDayRange struct {