Skip to content

Commit

Permalink
Add fallback for Utils.compile_env/3
Browse files Browse the repository at this point in the history
To allow for setups running a newer version of appsignal-elixir with
older versions of appsignal-phoenix or appsignal-plug, add a
deprecated fallback in order to not break any apps.

[changeset skip]
  • Loading branch information
jeffkreeftmeijer committed Jun 26, 2024
1 parent 59ee1a9 commit b678780
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/appsignal/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ defmodule Appsignal.Utils do
require Logger
Logger.warning(message)
end

@deprecated "Use Application.compile_env/3 instead."
def compile_env(app, key, default) do
Application.compile_env(app, key, default)
end
end

0 comments on commit b678780

Please sign in to comment.