From d9b3d8e9142ac0bb41c78ba9c61e43254de49d6d Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Thu, 12 Mar 2026 13:57:04 +0300 Subject: [PATCH] - fix logging formatting for callbacks --- src/libs/ice/ICELog.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/ice/ICELog.cpp b/src/libs/ice/ICELog.cpp index 422d05ac..1de3581d 100644 --- a/src/libs/ice/ICELog.cpp +++ b/src/libs/ice/ICELog.cpp @@ -349,8 +349,6 @@ void Logger::beginLine(LogLevel level, const char* filename, int linenumber, con void Logger::endLine() { - *mStream << std::endl; - *mStream << std::flush; mStream->flush(); std::ostringstream result; @@ -382,7 +380,7 @@ Logger::endLine() } if (mFile) { - fprintf(mFile, "%s", result.str().c_str()); + fprintf(mFile, "%s\n", result.str().c_str()); fflush(mFile); } if (mDelegate)