Fixing ticket #916, adding a catch-all logger for exceptions around message processing

This commit is contained in:
Viktor Klang 2011-06-12 20:21:40 +02:00
parent 5e192c5376
commit 54960f7e7d

View file

@ -879,9 +879,13 @@ class RemoteServerHandler(
case _ None
}
private def handleRemoteMessageProtocol(request: RemoteMessageProtocol, channel: Channel) = {
private def handleRemoteMessageProtocol(request: RemoteMessageProtocol, channel: Channel) = try {
EventHandler.debug(this, "Received remote message [%s]".format(request))
dispatchToActor(request, channel)
} catch {
case e: Exception
server.notifyListeners(RemoteServerError(e, server))
EventHandler.error(e, this, e.getMessage)
}
private def dispatchToActor(request: RemoteMessageProtocol, channel: Channel) {