Add logging

This commit is contained in:
2024-05-27 06:51:33 +00:00
committed by GitHub
parent bb4ba0456d
commit 89b2d33f76
5 changed files with 27 additions and 24 deletions

View File

@@ -190,8 +190,9 @@ class TaskManager {
} else if (type == "ping") {
_channel?.sink.add("{\"type\":\"pong\"}");
}
} catch (e) {
_log.warning("Error processing task message: $e, event: $event");
} catch (e, stack) {
_log.warning(
"Error processing task message: $e, event: $event\n$stack");
}
}, onError: (e) {
_log.warning("Task websocket error: $e");