add reason to leave callback (#833)

trace reason why phone reservation is leave

Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
This commit is contained in:
Jussi Vatjus-Anttila
2025-02-10 14:39:28 +02:00
committed by GitHub
parent 3ae7ed5aa6
commit fe79678ab5

View File

@@ -76,7 +76,7 @@ module.exports = syrup.serial()
plugin.leave = function(reason) {
return plugin.get()
.then(function(group) {
log.important('No longer owned by "%s"', group.email)
log.important('No longer owned by "%s" (reason: %s)', group.email, reason)
log.info('Unsubscribing from group channel "%s"', group.group)
channels.unregister(group.group)