Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/basho/riak_err

  • Loading branch information...
commit ef2bd32f4fc3031b98436fda69f7b00385afa32b 2 parents 157e6e4 + 7d5bd68
Fernando Benavides authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/riak_err_handler.erl
View
9 src/riak_err_handler.erl
@@ -261,8 +261,13 @@ format_event(Event, TermMaxSize, FmtMaxBytes) ->
limited_fmt(Fmt, Args, TermMaxSize, FmtMaxBytes) ->
TermSize = erts_debug:flat_size(Args),
if TermSize > TermMaxSize ->
- {Str, _} = trunc_io:print(Args, FmtMaxBytes),
- ["Oversize args for format \"", Fmt, "\": ", Str];
+ ["Oversize args for format \"", Fmt, "\": \n",
+ [
+ begin
+ {Str, _} = trunc_io:print(lists:nth(N, Args), FmtMaxBytes),
+ [" arg", integer_to_list(N), ": ", Str, "\n"]
+ end || N <- lists:seq(1, length(Args))
+ ]];
true ->
io_lib:format(Fmt, Args)
end.
Please sign in to comment.
Something went wrong with that request. Please try again.