From 463869e7b27285be03d20262f4b877848ba10927 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 22 Apr 2007 14:07:11 +0000 Subject: Use logging framework to log stack traces from exceptions. (refs #3) --- lib/common/Utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/common/Utils.cpp') 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" -- cgit v1.2.3