Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf.
This commit is contained in:
@@ -49,7 +49,7 @@ void TCSoapRunnable::run()
|
||||
if (!soap_valid_socket(soap_accept(&soap)))
|
||||
continue; // ran into an accept timeout
|
||||
|
||||
sLog->outDebug("TCSoap: accepted connection from IP=%d.%d.%d.%d", (int)(soap.ip>>24)&0xFF, (int)(soap.ip>>16)&0xFF, (int)(soap.ip>>8)&0xFF, (int)soap.ip&0xFF);
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: accepted connection from IP=%d.%d.%d.%d", (int)(soap.ip>>24)&0xFF, (int)(soap.ip>>16)&0xFF, (int)(soap.ip>>8)&0xFF, (int)soap.ip&0xFF);
|
||||
struct soap* thread_soap = soap_copy(&soap);// make a safe copy
|
||||
|
||||
ACE_Message_Block *mb = new ACE_Message_Block(sizeof(struct soap*));
|
||||
@@ -87,33 +87,33 @@ int ns1__executeCommand(soap* soap, char* command, char** result)
|
||||
// security check
|
||||
if (!soap->userid || !soap->passwd)
|
||||
{
|
||||
sLog->outDebug("TCSoap: Client didn't provide login information");
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: Client didn't provide login information");
|
||||
return 401;
|
||||
}
|
||||
|
||||
uint32 accountId = sAccountMgr->GetId(soap->userid);
|
||||
if(!accountId)
|
||||
{
|
||||
sLog->outDebug("TCSoap: Client used invalid username '%s'", soap->userid);
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: Client used invalid username '%s'", soap->userid);
|
||||
return 401;
|
||||
}
|
||||
|
||||
if(!sAccountMgr->CheckPassword(accountId, soap->passwd))
|
||||
{
|
||||
sLog->outDebug("TCSoap: invalid password for account '%s'", soap->userid);
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: invalid password for account '%s'", soap->userid);
|
||||
return 401;
|
||||
}
|
||||
|
||||
if(sAccountMgr->GetSecurity(accountId) < SEC_ADMINISTRATOR)
|
||||
{
|
||||
sLog->outDebug("TCSoap: %s's gmlevel is too low", soap->userid);
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: %s's gmlevel is too low", soap->userid);
|
||||
return 403;
|
||||
}
|
||||
|
||||
if(!command || !*command)
|
||||
return soap_sender_fault(soap, "Command mustn't be empty", "The supplied command was an empty string");
|
||||
|
||||
sLog->outDebug("TCSoap: got command '%s'", command);
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: got command '%s'", command);
|
||||
SOAPCommand connection;
|
||||
|
||||
// commands are executed in the world thread. We have to wait for them to be completed
|
||||
|
||||
Reference in New Issue
Block a user