adjust oversized error message

This commit is contained in:
Patrik Nordwall 2016-06-23 19:19:59 +02:00
parent a021eb5ff4
commit 9ffe211546
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ private[remote] class Encoder(
throw e
case _ if e.isInstanceOf[java.nio.BufferOverflowException]
val reason = new OversizedPayloadException(s"Discarding oversized payload sent to ${send.recipient}: max allowed size ${envelope.byteBuffer.limit()} bytes. Message type [${send.message.getClass.getName}].")
log.error(reason, "Transient association error (association remains live)")
log.error(reason, "Failed to serialize oversized message [{}].", send.message.getClass.getName)
pull(in)
case _
log.error(e, "Failed to serialize message [{}].", send.message.getClass.getName)