mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Save stacktrace of unknown errors
This commit is contained in:
@@ -107,7 +107,9 @@ export const applyActionsFromDevice = async ({ database, request, websocket, con
|
||||
if (ex instanceof ApplyActionException) {
|
||||
eventHandler.countEvent('applyActionsFromDevice errorDispatchingAction:' + ex.staticMessage)
|
||||
} else {
|
||||
eventHandler.countEvent('applyActionsFromDevice errorDispatchingAction:other')
|
||||
const stack = ex instanceof Error && ex.stack ? ex.stack.substring(0, 4096) : 'no stack'
|
||||
|
||||
eventHandler.countEvent('applyActionsFromDevice errorDispatchingAction:other:' + stack)
|
||||
}
|
||||
|
||||
cache.requireFullSync()
|
||||
|
||||
Reference in New Issue
Block a user