Skip to content

Commit

Permalink
Change binary_to_list for String.to_char_list!
Browse files Browse the repository at this point in the history
binary_to_list/1 is deprecated. Please use String.to_char_list!/1
instead unless you are working with bytes, then you should use
:binary.bin_to_list/
  • Loading branch information
edgurgel committed Sep 14, 2013
1 parent b50e47a commit 94087d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lager.ex
Expand Up @@ -54,7 +54,7 @@ defmodule Lager do
defp log(level, format, args, caller) do
{name, __arity} = caller.function || {:unknown, 0}
module = caller.module || :unknown
if is_binary(format), do: format = binary_to_list(format)
if is_binary(format), do: format = String.to_char_list!(format)
if should_log(level) do
dispatch(level, module, name, caller.line, format, args)
end
Expand Down

0 comments on commit 94087d1

Please sign in to comment.