Skip to content

Commit

Permalink
Fix version check for Elixir (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach authored Jun 27, 2024
1 parent ea269fa commit cfb852e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/x509/logger.ex
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
defmodule X509.Logger do
@moduledoc false
alias X509.Util

require Logger

if Util.app_version(:logger) >= [1, 11, 0] do
if Version.match?(System.version(), ">= 1.11.0") do
def warn(message, metadata \\ []) do
Logger.warning(message, metadata)
end
Expand Down

0 comments on commit cfb852e

Please sign in to comment.