From f34e513192b39ffe614a2932b97398e3f4913a33 Mon Sep 17 00:00:00 2001 From: vl Date: Wed, 28 Jul 2010 09:36:22 +0200 Subject: [PATCH] Fixed: the nel tracer/printer for libwww --- code/ryzom/client/src/libwww.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/code/ryzom/client/src/libwww.cpp b/code/ryzom/client/src/libwww.cpp index 7e4a2b4fd..c66079cdb 100644 --- a/code/ryzom/client/src/libwww.cpp +++ b/code/ryzom/client/src/libwww.cpp @@ -234,16 +234,24 @@ void _VerifyLibWWW(const char *function, bool ok, const char *file, int line) int NelPrinter (const char * fmt, va_list pArgs) { - nlinfo (fmt, pArgs); - return 0; + char info[1024]; + int ret; + + ret = vsnprintf(info, sizeof(info), fmt, pArgs); + nlinfo("%s", info); + return ret; } // *************************************************************************** int NelTracer (const char * fmt, va_list pArgs) { - nlwarning (fmt, pArgs); - return 0; + char err[1024]; + int ret; + + ret = vsnprintf(err, sizeof(err), fmt, pArgs); + nlwarning ("%s", err); + return ret; } // *************************************************************************** @@ -518,12 +526,14 @@ void setCurrentDomain(const std::string &url) } } - void initLibWWW() { static bool initialized = false; if (!initialized) { + // log all libwww + //WWW_TraceFlag = SHOW_ALL_TRACE; + //HTProfile_newNoCacheClient("Ryzom", "1.1"); /* Need our own trace and print functions */