Swoosh - how to switch off logs?

Hi guys,

does anyone know how to switch off ( get rid off ) log messages from Swoosh library ( STMP configured ).
I’m still struggling with it, but can’t find the way ( config ) where to switch it off.

Thx,

Pavel

13:15:28.640 [debug] Headers: [
{“Content-Transfer-Encoding”, “quoted-printable”},
{“Content-Type”, "text/html; charset=“utf-8"”}
]

13:15:28.640 [debug] Headers: [
{“Content-Disposition”, “inline”},
{“Content-Transfer-Encoding”, “quoted-printable”},
{“Content-Type”, "text/html; charset=“utf-8"”}
]

13:15:28.640 [debug] Headers: [
{“Content-Type”, "text/html; charset=“utf-8"”},
{“Content-Transfer-Encoding”, “quoted-printable”},
{“Content-Disposition”, “inline”}
]

13:15:28.640 [debug] Headers: [{“Content-Transfer-Encoding”, “base64”}]

13:15:28.640 [debug] Headers: [
{“Content-Type”,
“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”},
{“Content-Transfer-Encoding”, “base64”}
]

13:15:28.640 [debug] Headers: [
{“Content-Disposition”, “attachment;filename=zame_export_202105_AG_C.xlsx”},
{“Content-Type”,
“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”},
{“Content-Transfer-Encoding”, “base64”}
]

13:15:28.640 [debug] Headers: [
{“Content-Transfer-Encoding”, “base64”},
{“Content-Type”,
“application/vnd.openxmlformats-officedocument.spreadsheetml.sheet”},
{“Content-Disposition”, “attachment;filename=zame_export_202105_AG_C.xlsx”}
]

13:15:28.867 [warn] Description: ‘Authenticity is not established by certificate path validation’
Reason: ‘Option {verify, verify_peer} and cacertfile/cacerts is missing’

Those are debug print. Once you run in prod they won’t show.

1 Like

You could add a filter for logger - Erlang -- logger

Like in discussion here - How can I filter info message in log

1 Like

Hi,
thx a lot for both answers, I rebuild the app with MIX_ENV=prod and it works now properly.
In the evening I’m going to read the discussion ‘How to filter …’

Pavel

These are from gen_smtp. Swoosh doesn’t have a single line of Logger.debug.

1 Like