Replace LogFile->write(EQEmuLog::Error, with logger.logevents(EQEmuLogSys::Error

This commit is contained in:
Akkadius
2015-01-10 15:44:35 -06:00
parent dadae1a71f
commit 6844645dfb
40 changed files with 415 additions and 409 deletions
+2 -2
View File
@@ -496,7 +496,7 @@ int command_add(const char *command_string, const char *desc, int access, CmdFun
std::string cstr(command_string);
if(commandlist.count(cstr) != 0) {
LogFile->write(EQEmuLog::Error, "command_add() - Command '%s' is a duplicate - check command.cpp." , command_string);
logger.Log(EQEmuLogSys::Error,"command_add() - Command '%s' is a duplicate - check command.cpp." , command_string);
return(-1);
}
@@ -575,7 +575,7 @@ int command_realdispatch(Client *c, const char *message)
#endif
if(cur->function == nullptr) {
LogFile->write(EQEmuLog::Error, "Command '%s' has a null function\n", cstr.c_str());
logger.Log(EQEmuLogSys::Error,"Command '%s' has a null function\n", cstr.c_str());
return(-1);
} else {
//dispatch C++ command