mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 00:36:17 +00:00
Fixed: the nel tracer/printer for libwww
This commit is contained in:
parent
003104a4f3
commit
d37b773aca
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