Skip to content

Conversation

dustinfarris
Copy link
Contributor

@dustinfarris dustinfarris commented Jun 22, 2023

Elixir 1.15 hard-deprecates Logger.warn. Custom logger backends that still use the legacy custom backend API must translate the log level to avoid emitting a deprecation warning.

Fixes #552

@josevalim
Copy link
Contributor

One tiny comment but otherwise LGTM!

@dustinfarris dustinfarris force-pushed the fix-warn-deprecation branch 2 times, most recently from 0cf619d to 4928ac2 Compare July 3, 2023 17:05
Elixir 1.15 hard-depcreates Logger.warn.  Custom logger backends that
still use the legacy custom backend API must translate the log level to
avoid emitting a deprecation warning.

Co-authored-by: José Valim <[email protected]>
@dustinfarris dustinfarris force-pushed the fix-warn-deprecation branch from 4928ac2 to 591a000 Compare July 3, 2023 17:06
@dustinfarris dustinfarris changed the title fix: translate elixir :warn log level to :warning support elixir 1.15 Jul 3, 2023
@dustinfarris
Copy link
Contributor Author

@antonpirker @sl0thentr0py this is ready for review.

@whatyouhide
Copy link
Collaborator

Great work! Lots of Elixir 1.15 adoption, so it would be awesome to get this merged in 🙃

@princemaple
Copy link

@mitchellhenke @michallepicki still with Sentry?

@solnic
Copy link
Collaborator

solnic commented Jul 7, 2023

Please get this released 🙏🏻 🙇🏻 It's our current 1.15.2 upgrade blocker 🙂

@janwillemvd
Copy link

Great work! Lots of Elixir 1.15 adoption, so it would be awesome to get this merged in 🙃

Couldn't agree more 😅

@sl0thentr0py sl0thentr0py self-assigned this Jul 7, 2023
@sl0thentr0py
Copy link
Member

will set aside some time for elixir next week, promise!

@whatyouhide whatyouhide changed the title support elixir 1.15 Fix Elixir 1.15 warnings Jul 11, 2023
@whatyouhide whatyouhide merged commit 9771d99 into getsentry:master Jul 11, 2023
@anthonator
Copy link

Sorry to be this guy but can we get a release for this? 😬

@dustinfarris dustinfarris deleted the fix-warn-deprecation branch July 11, 2023 14:18
@whatyouhide
Copy link
Collaborator

@anthonator don't be that guy... 😄 Just kidding. We merged this literally a few hours ago, we're working on a release, no worries! 🙃

@anthonator
Copy link

😅 Sorry and thank you! 😅

derrickcrowne pushed a commit to blitzstudios/sentry-elixir that referenced this pull request Oct 18, 2023
Elixir 1.15 hard-depcreates Logger.warn/1. Custom logger backends that
still use the legacy custom backend API must translate the log level to
avoid emitting a deprecation warning.

Co-authored-by: José Valim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elixir 1.15 deprecates Logger.warn
10 participants