From 1ae8dee2c2d37b844875ac6599c4528fb91a2870 Mon Sep 17 00:00:00 2001 From: LordJZ Date: Tue, 31 Jul 2012 00:44:19 +0400 Subject: [PATCH] Print stack trace in ByteBufferException::PrintPosError. --- src/shared/ByteBuffer.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/shared/ByteBuffer.h b/src/shared/ByteBuffer.h index 0a2f048db..47419f3db 100644 --- a/src/shared/ByteBuffer.h +++ b/src/shared/ByteBuffer.h @@ -34,8 +34,11 @@ class ByteBufferException void PrintPosError() const { - sLog.outError("Attempted to %s in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD") value with size: " SIZEFMTD, - (add ? "put" : "get"), pos, size, esize); + ACE_Stack_Trace trace; + sLog.outError( + "Attempted to %s in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD") " + "value with size: " SIZEFMTD "\n%s", + (add ? "put" : "get"), pos, size, esize, trace.c_str()); } private: bool add;