From a9c92451cb1a497624c0fcb22ae01dfeb19eacbe Mon Sep 17 00:00:00 2001 From: nioc Date: Mon, 25 Nov 2019 23:48:05 +0100 Subject: [PATCH] Increase log level for some XMPP events --- lib/xmpp/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/xmpp/index.js b/lib/xmpp/index.js index 177f8db..fa144ec 100644 --- a/lib/xmpp/index.js +++ b/lib/xmpp/index.js @@ -17,6 +17,7 @@ module.exports = (logger, config) => { // declare send chat/groupchat function this.send = async (to, message, type) => { + logger.info(`Send ${type} message to ${to}`) logger.debug(`Send ${type} message to ${to}: '${message.replace(/\n|\r/g, ' ')}'`) const stanza = xml( 'message', { @@ -133,7 +134,7 @@ module.exports = (logger, config) => { } switch (xmppHook.action) { case 'outgoing_webhook': - logger.debug(`Call outgoing webhook: ${xmppHook.args[0]}`) + logger.info(`Call outgoing webhook: ${xmppHook.args[0]}`) outgoing(logger, config, this, from.toString(), replyTo.toString(), message, type, xmppHook.args[0]) .catch(() => { this.send(replyTo.toString(), config.xmpp.errorReply, type)