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)
|
||||
{
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue