feat(core): Log handler executions
This commit is contained in:
parent
fb4b4c71e2
commit
3a94dd9634
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user