From 3d3c51b1791501c1983146ce9a54bad0872f5d69 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 27 May 2012 10:49:17 +0000 Subject: [PATCH] Improved logging on mis-configuration in cPlayer and cWorldStorage git-svn-id: http://mc-server.googlecode.com/svn/trunk@505 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/WorldStorage.cpp | 4 +++- source/cPlayer.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/WorldStorage.cpp b/source/WorldStorage.cpp index 16439d162..c9ca69659 100644 --- a/source/WorldStorage.cpp +++ b/source/WorldStorage.cpp @@ -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()); diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 961145d6e..87db2d19d 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -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 {