mathieuprog / tz

Time zone support for Elixir
Apache License 2.0
125 stars 11 forks source link

Logger.warn/1 is deprecated on Elixir 1.15 in favour of Logger.warning/2 #19

Closed kipcole9 closed 1 year ago

kipcole9 commented 1 year ago

With the publishing of Elixir 1.15.0-rc.0 today, the following deprecation is now in effect:

==> tz
Compiling 16 files (.ex)
warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
  lib/tz/watch_periodically.ex:19: Tz.WatchPeriodically.watch/1

Given Logger.warn/1 is a macro perhaps there's a way to conditionally compile in either Logger.warning/2 if its defined and Logger.warn/1 if not? I'm fine to work on a PR if that's helpful.

mathieuprog commented 1 year ago

Hello Kip! Sure a PR would be helpful

mathieuprog commented 1 year ago

Thank you @kipcole9 that was very helpful!