Skip to content

Commit

Permalink
Adding a warning so we can see if we can remove (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 authored Sep 6, 2024
1 parent e776e0b commit a874cf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/typing/ext/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ func ParseExtendedDateTime(dtString string, additionalDateFormats []string) (*Ex

// If nothing fits, return the next best thing.
if potentialFormat != "" {
// TODO: Remove this if we don't see any logs.
slog.Warn("Failed to find exact match for dtString, returning next best thing", slog.String("dtString", dtString), slog.String("potentialFormat", potentialFormat))
return NewExtendedTime(potentialTime, DateTimeKindType, potentialFormat), nil
}

Expand Down

0 comments on commit a874cf2

Please sign in to comment.