Skip to content

Commit

Permalink
Changing the variable name from log_message to final_log_message
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAn0therDev committed Oct 2, 2021
1 parent 7baf8d8 commit 6ece59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Logger/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void Logger::Log(const std::string& p_message) noexcept

strftime(time_string_buffer, sizeof(time_string_buffer), "%Y-%m-%d %X", current_local_time);

const auto& message = strcat(time_string_buffer, LOG_MESSAGE_DELIMETER) + p_message + "\n";
const auto& final_log_message = strcat(time_string_buffer, LOG_MESSAGE_DELIMETER) + p_message + "\n";

fputs(message.c_str(), this->m_file);
fputs(final_log_message.c_str(), this->m_file);
}

0 comments on commit 6ece59f

Please sign in to comment.