Skip to content

Commit

Permalink
Core/Logging: Fixed filenames of backup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Mar 24, 2014
1 parent 894eb9a commit aeff794
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/shared/Logging/AppenderFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ FILE* AppenderFile::OpenFile(std::string const &filename, std::string const &mod
std::string newName(fullName);
newName.push_back('.');
newName.append(LogMessage::getTimeStr(time(NULL)));
std::replace(newName.begin(), newName.end(), ':', '-');
rename(fullName.c_str(), newName.c_str()); // no error handling... if we couldn't make a backup, just ignore
}

Expand Down

0 comments on commit aeff794

Please sign in to comment.