Improved logging on mis-configuration in cPlayer and cWorldStorage
git-svn-id: http://mc-server.googlecode.com/svn/trunk@505 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
a4a418a679
commit
3d3c51b179
|
@ -231,7 +231,9 @@ void cWorldStorage::InitSchemas(void)
|
|||
} // for itr - m_Schemas[]
|
||||
|
||||
// Unknown schema selected, let the admin know:
|
||||
LOGWARNING("Unknown storage schema name \"%s\". Using default. Available schemas:", m_StorageSchemaName.c_str());
|
||||
LOGWARNING("Unknown storage schema name \"%s\". Using default (\"%s\"). Available schemas:",
|
||||
m_StorageSchemaName.c_str(), m_SaveSchema->GetName().c_str()
|
||||
);
|
||||
for (cWSSchemaList::iterator itr = m_Schemas.begin(); itr != m_Schemas.end(); ++itr)
|
||||
{
|
||||
LOGWARNING("\t\"%s\"", (*itr)->GetName().c_str());
|
||||
|
|
|
@ -682,7 +682,9 @@ void cPlayer::ResolveGroups()
|
|||
cGroup* CurrentGroup = *ToIterate.begin();
|
||||
if( AllGroups.find( CurrentGroup ) != AllGroups.end() )
|
||||
{
|
||||
LOGERROR("ERROR: Player %s is in the same group multiple times (%s). FIX IT!", m_PlayerName.c_str(), CurrentGroup->GetName().c_str() );
|
||||
LOGWARNING("ERROR: Player \"%s\" is in the group multiple times (\"%s\"). Please fix your settings in users.ini!",
|
||||
m_PlayerName.c_str(), CurrentGroup->GetName().c_str()
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue