Core/Logging: Use correct realmId when logging to DB

This commit is contained in:
Spp
2013-01-16 08:59:56 +01:00
parent faccbef869
commit be3826825e
14 changed files with 56 additions and 62 deletions

View File

@@ -39,7 +39,7 @@ AppenderFile::~AppenderFile()
}
}
void AppenderFile::_write(LogMessage& message)
void AppenderFile::_write(LogMessage const& message)
{
if (dynamicName)
{
@@ -70,5 +70,6 @@ FILE* AppenderFile::OpenFile(std::string const &filename, std::string const &mod
newName.append(LogMessage::getTimeStr(time(NULL)));
rename(filename.c_str(), newName.c_str()); // no error handling... if we couldn't make a backup, just ignore
}
return fopen((logDir + filename).c_str(), mode.c_str());
}