1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

show logs without debugger attached

This commit is contained in:
Andrey Filipenkov 2021-03-14 07:53:03 +03:00
parent 7def214740
commit 568e7446b9

View File

@ -392,7 +392,7 @@ void CLogConsoleTarget::write(const LogRecord & record)
currentLog = os_log_create(ios_bundleIdentifier(), domainName.c_str()); currentLog = os_log_create(ios_bundleIdentifier(), domainName.c_str());
logs.insert({domainName, currentLog}); 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 #else
const bool printToStdErr = record.level >= ELogLevel::WARN; const bool printToStdErr = record.level >= ELogLevel::WARN;