From fe79678ab5c0fc023d712f6894ea266fa0a7eced Mon Sep 17 00:00:00 2001 From: Jussi Vatjus-Anttila Date: Mon, 10 Feb 2025 14:39:28 +0200 Subject: [PATCH] add reason to leave callback (#833) trace reason why phone reservation is leave Signed-off-by: Jussi Vatjus-Anttila --- lib/units/device/plugins/group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/units/device/plugins/group.js b/lib/units/device/plugins/group.js index 5302b33f..e22602e2 100644 --- a/lib/units/device/plugins/group.js +++ b/lib/units/device/plugins/group.js @@ -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)