Merge pull request #62 from LordJZ/feature/bytebuffer-enhancement

Print stack trace in ByteBufferException::PrintPosError.
This commit is contained in:
Sergey 2012-07-30 19:30:25 -07:00
commit 10f55eab70

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;