- fix logging formatting for callbacks
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user