Add debug for current term resolution

This commit is contained in:
2023-12-26 06:52:29 -06:00
parent 0785d6522f
commit 3020632364

View File

@@ -5,6 +5,8 @@ import (
"strconv" "strconv"
"time" "time"
_ "time/tzdata" _ "time/tzdata"
"github.com/rs/zerolog/log"
) )
// Term selection should yield smart results based on the current time, as well as the input provided. // 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())) 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 { type YearDayRange struct {