Skip to content

Commit

Permalink
Fix appending logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonNyvall committed Oct 25, 2024
1 parent 2bfd859 commit cccf0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errorLog/errorLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void logErrorToFile(std::string location, std::string logLevel, std::string mess
std::string currentLogLineStr = currentDateTime;
std::string logLine = currentLogLineStr + " - " + location + " - " + logLevel + " - " + message;

std::ofstream outFile(ERROR_FILE_PATH);
std::ofstream outFile(ERROR_FILE_PATH, std::ios::app);
outFile << logLine << std::endl;
outFile.close();
}

0 comments on commit cccf0ff

Please sign in to comment.