Skip to content
Browse files

Change binary_to_list for String.to_char_list!

binary_to_list/1 is deprecated. Please use String.to_char_list!/1
instead unless you are working with bytes, then you should use
  • Loading branch information...
1 parent b50e47a commit 94087d1a1e6ecb70729d2bc3192e3fb6b8be86eb @edgurgel edgurgel committed Sep 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/lager.ex
2 lib/lager.ex
@@ -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)

0 comments on commit 94087d1

Please sign in to comment.
Something went wrong with that request. Please try again.