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 void PrintPosError() const
{ {
sLog.outError("Attempted to %s in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD") value with size: " SIZEFMTD, ACE_Stack_Trace trace;
(add ? "put" : "get"), pos, size, esize); 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: private:
bool add; bool add;