Skip to content

Commit

Permalink
Merge pull request #631 from xiaobfly/master
Browse files Browse the repository at this point in the history
fixed file extension
  • Loading branch information
sergiud authored Apr 4, 2021
2 parents bf183f4 + 4fca1b9 commit 82320a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -997,10 +997,11 @@ void LogFileObject::FlushUnlocked(){
}

bool LogFileObject::CreateLogfile(const string& time_pid_string) {
string string_filename = base_filename_+filename_extension_;
string string_filename = base_filename_;
if (FLAGS_timestamp_in_logfile_name) {
string_filename += time_pid_string;
}
string_filename += filename_extension_;
const char* filename = string_filename.c_str();
//only write to files, create if non-existant.
int flags = O_WRONLY | O_CREAT;
Expand Down

0 comments on commit 82320a8

Please sign in to comment.