[erlang-questions] lager/io:format and sets
Tue Nov 11 02:13:47 CET 2014
On Tue, Nov 11, 2014 at 12:02 AM, Oleg Tsarev <> wrote:
> How I can fix the output of the set in lager and io:format?
I don't see a "built in" way to fix this. To roll your own, you could
"patch over" the record with sets:to_list/1 to make a printable
version. E.g. something like
lager:debug("args ~p, state ~p", [Args, lager:pr(printable(State), ?MODULE)),
It's not super. You might need to change the record's type annotations
to avoid upsetting Dialyzer.
More information about the erlang-questions