Print stack trace in ByteBufferException::PrintPosError.

This commit is contained in:
LordJZ 2012-07-31 00:44:19 +04:00
parent 19e03b0890
commit 1ae8dee2c2

View file

@ -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;