Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to display complete system error message #538

Open
luobin998877 opened this issue Feb 6, 2021 · 1 comment
Open

how to display complete system error message #538

luobin998877 opened this issue Feb 6, 2021 · 1 comment

Comments

@luobin998877
Copy link

Screen Shot 2021-02-06 at 11 41 14 PM

have set {lager_truncation_size, 409600}
but nothing changed

@jadeallenx
Copy link
Member

jadeallenx commented Feb 6, 2021

Unfortunately, it is a known issue that lager_truncation_size does not universally apply to all messages - for example, the value is hardcoded in https://github.com/erlang-lager/lager/blob/master/src/error_logger_lager_h.erl#L592 - you have two options here.

  1. You can increase the hard coded limit in https://github.com/erlang-lager/lager/blob/master/include/lager.hrl#L18, or
  2. You can patch lager such that the error logger handler respects lager_truncation_size

In either case you're going to have to recompile the patched lager and incorporate it into your application. Sorry.

(see also #211)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants