mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 04:42:10 +01:00
Core/Logging: Use correct realmId when logging to DB
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user