mirror of
https://github.com/nioc/xmpp-bot.git
synced 2024-12-04 22:23:36 +01:00
Increase log level for some XMPP events
This commit is contained in:
parent
1795d9f1c5
commit
a9c92451cb
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue