Increase log level for some XMPP events

This commit is contained in:
nioc 2019-11-25 23:48:05 +01:00
parent 1795d9f1c5
commit a9c92451cb

View file

@ -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)