mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 19:37:01 +00:00
Print stack trace in ByteBufferException::PrintPosError.
This commit is contained in:
parent
19e03b0890
commit
1ae8dee2c2
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue