2
0
Эх сурвалжийг харах

show logs without debugger attached

Andrey Filipenkov 4 жил өмнө
parent
commit
568e7446b9

+ 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;