diff --git a/lib/appsignal/utils.ex b/lib/appsignal/utils.ex index 959c4ece..9bb9287a 100644 --- a/lib/appsignal/utils.ex +++ b/lib/appsignal/utils.ex @@ -30,4 +30,11 @@ defmodule Appsignal.Utils do require Logger Logger.warning(message) end + + @deprecated "Use Application.compile_env/3 instead." + defmacro compile_env(app, key, default \\ nil) do + quote do + Application.compile_env(unquote(app), unquote(key), unquote(default)) + end + end end