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)