lager
lager copied to clipboard
size of crash report line
Crash reports are formatted with something like
format_reason(Reason) -> {Str, _} = lager_trunc_io:print(Reason, 500), ...
It would be nice if the 500 were configurable. I had a program failure that dumped a largish structure where I needed 1K or so to figure out what was wrong. It's pretty common to have a few dozen levels of backtrace before finding the higher level place where the program is crashing, so I actually think 500 is too small a default except in cases where processes are crashing fast and repeatedly. If crashes are occasional and abnormal, it's ok to dump a few kilobytes for each one.
:thumbsup: had to patch that manually just now
This should be modified in a future release to be more configurable.
This is still at the top of my TODO list. These limits ought to be more configurable than recompiling trunc_io.erl
Dup of #211