From c761802ddd492bde1a45425b7bcf0bde981cd590 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Tue, 27 Oct 2020 18:11:31 +0200 Subject: [PATCH] Fix attachments missing from logs --- src/formatters.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/formatters.js b/src/formatters.js index 0c9a52b..9ed9d82 100644 --- a/src/formatters.js +++ b/src/formatters.js @@ -286,6 +286,11 @@ const defaultFormatters = { line += ` [${message.user_name}] ${message.body}`; } + if (message.attachments.length) { + line += "\n\n"; + line += message.attachments.join("\n"); + } + return line; });