anchor.diff:          Message -> Message
       end;
   posix_error(Error) ->
  -    format_string_chop("~p", [Error], 4096).
  +    safe_format_chop("~p", [Error], 4096).
   
   %% @private
   get_loglevels() ->
  
positive.code:     Timestamp = lager_util:format_time(Time),
      Msg = [["[", atom_to_list(Level), "] "],
             io_lib:format("~p@~p:~p:~p ", [Pid, Module, Function, Line]),
             format_string_chop(Format, Args, 4096)],
      safe_notify(lager_util:level_to_num(Level), Timestamp, Msg).
  
  %% @doc Manually log a message into lager without using the parse transform.
  
negative.code:     end.
  
  %% @private
  safe_format_chop(Fmt, Args, Limit) ->
      re:replace(safe_format(Fmt, Args, Limit), "\n$", "", [{return, list}]).
  