feat(core): Log handler executions

This commit is contained in:
PapaTutuWawa 2023-09-29 20:01:09 +02:00
parent fb4b4c71e2
commit 3a94dd9634

View File

@ -681,10 +681,13 @@ class XmppConnection {
for (final handlerRaw in handlers) { for (final handlerRaw in handlers) {
final (handler, managerName) = handlerRaw; final (handler, managerName) = handlerRaw;
if (handler.matches(state.stanza)) { if (handler.matches(state.stanza)) {
_log.finest(
'Running handler for ${stanza.tag} (${stanza.attributes["id"]}) of $managerName',
);
state = await handler.callback(state.stanza, state); state = await handler.callback(state.stanza, state);
if (state.done || state.cancel) { if (state.done || state.cancel) {
_log.finest( _log.finest(
'Processing ended early for ${stanza.tag} by $managerName', 'Processing ended early for ${stanza.tag} (${stanza.attributes["id"]}) by $managerName',
); );
return state; return state;
} }