summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-04-22 14:07:11 +0000
committerChris Wilson <chris+github@qwirx.com>2007-04-22 14:07:11 +0000
commit463869e7b27285be03d20262f4b877848ba10927 (patch)
tree6ac02e15014dfd864805fe9fec65b5c040fb781a /lib/common
parent2ae391bba728884f076bb4d4eba04b581aa750a0 (diff)
Use logging framework to log stack traces from exceptions. (refs #3)
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/Utils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/common/Utils.cpp b/lib/common/Utils.cpp
index ae06dc70..5dc03124 100644
--- a/lib/common/Utils.cpp
+++ b/lib/common/Utils.cpp
@@ -20,6 +20,7 @@
#include "Utils.h"
#include "CommonException.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -71,11 +72,11 @@ void DumpStackBacktrace()
size = backtrace (array, 10);
strings = backtrace_symbols (array, size);
- printf ("Obtained %zd stack frames.\n", size);
+ BOX_TRACE("Obtained " << size << " stack frames.");
for(i = 0; i < size; i++)
{
- printf("%s\n", strings[i]);
+ BOX_TRACE(strings[i]);
}
#include "MemLeakFindOff.h"