Skip to content

Commit

Permalink
chore: add TODO when no longer supporting versions prior to v1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
c4710n committed Oct 23, 2023
1 parent 8c1ff2b commit 0039e0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cozy_logger/formats/json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,15 @@ defmodule CozyLogger.JSON do

alias Logger.Formatter

# credo:disable-for-next-line
# TODO: remove these types when no longer supporting versions prior to v1.15
@type date :: {1970..10_000, 1..12, 1..31}
@type time_ms :: {0..23, 0..59, 0..59, 0..999}
@type date_time_ms :: {date, time_ms}

# credo:disable-for-next-line
# TODO: replace date_time_ms with Logger.Formatter.date_time_ms() when no longer
# supporting versions prior to v1.15
@spec format(atom, term, date_time_ms, keyword) :: IO.chardata()
def format(level, message, timestamp, metadata) do
build_base_attrs(level, message, timestamp)
Expand Down

0 comments on commit 0039e0a

Please sign in to comment.