mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-23 17:28:45 +00:00
Fixed: the nel tracer/printer for libwww
This commit is contained in:
parent
d3fd4c5789
commit
ce230a2fcd
1 changed files with 15 additions and 5 deletions
|
@ -234,16 +234,24 @@ void _VerifyLibWWW(const char *function, bool ok, const char *file, int line)
|
||||||
|
|
||||||
int NelPrinter (const char * fmt, va_list pArgs)
|
int NelPrinter (const char * fmt, va_list pArgs)
|
||||||
{
|
{
|
||||||
nlinfo (fmt, pArgs);
|
char info[1024];
|
||||||
return 0;
|
int ret;
|
||||||
|
|
||||||
|
ret = vsnprintf(info, sizeof(info), fmt, pArgs);
|
||||||
|
nlinfo("%s", info);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
||||||
int NelTracer (const char * fmt, va_list pArgs)
|
int NelTracer (const char * fmt, va_list pArgs)
|
||||||
{
|
{
|
||||||
nlwarning (fmt, pArgs);
|
char err[1024];
|
||||||
return 0;
|
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()
|
void initLibWWW()
|
||||||
{
|
{
|
||||||
static bool initialized = false;
|
static bool initialized = false;
|
||||||
if (!initialized)
|
if (!initialized)
|
||||||
{
|
{
|
||||||
|
// log all libwww
|
||||||
|
//WWW_TraceFlag = SHOW_ALL_TRACE;
|
||||||
|
|
||||||
//HTProfile_newNoCacheClient("Ryzom", "1.1");
|
//HTProfile_newNoCacheClient("Ryzom", "1.1");
|
||||||
|
|
||||||
/* Need our own trace and print functions */
|
/* Need our own trace and print functions */
|
||||||
|
|
Loading…
Reference in a new issue