mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
Possibly fix ByteBuffer when no ACE_Stack_Trace available.
Testing required as I do not have access to a system that lacks ACE_Stack_Trace."
This commit is contained in:
parent
4bf5c3d701
commit
9daa9ad472
1 changed files with 11 additions and 2 deletions
|
|
@ -34,11 +34,20 @@ class ByteBufferException
|
|||
|
||||
void PrintPosError() const
|
||||
{
|
||||
char const* traceStr;
|
||||
|
||||
#ifdef HAVE_ACE_STACK_TRACE_H
|
||||
ACE_Stack_Trace trace;
|
||||
traceStr = trace.c_str();
|
||||
#else
|
||||
traceStr = NULL;
|
||||
#endif
|
||||
|
||||
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());
|
||||
"value with size: " SIZEFMTD "%s%s",
|
||||
(add ? "put" : "get"), pos, size, esize,
|
||||
traceStr ? "\n" : "", traceStr ? traceStr : "");
|
||||
}
|
||||
private:
|
||||
bool add;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue