Commit 3cf0c97a8b3ad10a268cac4c673afec4e7bf2b51
1 parent
c44bbd6885
Exists in
master
msg.toString on failed
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/smstools-handler/failed.js
... | ... | @@ -11,5 +11,5 @@ module.exports = async (msgFilename) => { |
11 | 11 | return; |
12 | 12 | } |
13 | 13 | |
14 | - logger.warn('Sent failed detected', { eventType, msgFile: msgFilename, msgFileContent: msg }); | |
14 | + logger.warn('Sent failed detected', { eventType, msgFile: msgFilename, msgFileContent: (msg || '').toString() }); | |
15 | 15 | }; |