There is a gen_server that keeps some sensible information in it's state (password and so on)
Lagger is enabled,
So in case of crash gen_server's state is dump to the crash log like:
yyyy-mm-dd hh:mm:ss =ERROR REPORT==== ** Generic server XXX terminating ** Last message in was ... ** When Server state == {state, ...} ** Reason for termination ==
As a result sensible information is written to the log file.
Are there any way to prevent state of the gen_server to be written into the log files/crash dumps?