Pārlūkot izejas kodu

show logs without debugger attached

Andrey Filipenkov 4 gadi atpakaļ
vecāks
revīzija
568e7446b9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      lib/logging/CLogger.cpp

+ 1 - 1
lib/logging/CLogger.cpp

@@ -392,7 +392,7 @@ void CLogConsoleTarget::write(const LogRecord & record)
         currentLog = os_log_create(ios_bundleIdentifier(), domainName.c_str());
         logs.insert({domainName, currentLog});
     }
-    os_log_with_type(currentLog, type, "%s", message.c_str());
+    os_log_with_type(currentLog, type, "%{public}s", message.c_str());
 #else
 
 	const bool printToStdErr = record.level >= ELogLevel::WARN;