- fix logging formatting for callbacks

This commit is contained in:
2026-03-12 13:57:04 +03:00
parent 06e8bf0b5d
commit d9b3d8e914

View File

@@ -349,8 +349,6 @@ void Logger::beginLine(LogLevel level, const char* filename, int linenumber, con
void void
Logger::endLine() Logger::endLine()
{ {
*mStream << std::endl;
*mStream << std::flush;
mStream->flush(); mStream->flush();
std::ostringstream result; std::ostringstream result;
@@ -382,7 +380,7 @@ Logger::endLine()
} }
if (mFile) if (mFile)
{ {
fprintf(mFile, "%s", result.str().c_str()); fprintf(mFile, "%s\n", result.str().c_str());
fflush(mFile); fflush(mFile);
} }
if (mDelegate) if (mDelegate)