lager icon indicating copy to clipboard operation
lager copied to clipboard

size of crash report line

Open paul-mhq opened this issue 11 years ago • 4 comments

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.

paul-mhq avatar Jul 31 '13 22:07 paul-mhq

:thumbsup: had to patch that manually just now

MSch avatar May 11 '14 08:05 MSch

This should be modified in a future release to be more configurable.

jadeallenx avatar Jun 24 '15 21:06 jadeallenx

This is still at the top of my TODO list. These limits ought to be more configurable than recompiling trunc_io.erl

jadeallenx avatar Jan 19 '17 22:01 jadeallenx

Dup of #211

jadeallenx avatar Jan 19 '17 22:01 jadeallenx