From e4ec255b3b83d70d9edb2358cf907e0b9610c16f Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 14 Nov 2016 11:08:08 +0100 Subject: [PATCH] Better os_log managing --- Classes/Utils/Log.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Classes/Utils/Log.m b/Classes/Utils/Log.m index 88b336174..18edc3041 100644 --- a/Classes/Utils/Log.m +++ b/Classes/Utils/Log.m @@ -87,29 +87,29 @@ void linphone_iphone_log_handler(const char *domain, OrtpLogLevel lev, const cha // fixed-length aligned logs if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max) { - os_log_t log = os_log_create("", "Notice"); + os_log_t log = os_log_create("subsystem", "Notice"); os_log_type_t type = OS_LOG_TYPE_INFO; switch (lev) { case ORTP_FATAL: type = OS_LOG_TYPE_FAULT; - log = os_log_create("sip.linphone.org", "Fatal"); + log = os_log_create("subsystem", "Fatal"); break; case ORTP_ERROR: type = OS_LOG_TYPE_ERROR; - log = os_log_create("sip.linphone.org", "Error"); + log = os_log_create("subsystem", "Error"); break; case ORTP_WARNING: type = OS_LOG_TYPE_DEFAULT; - log = os_log_create("sip.linphone.org", "Warning"); + log = os_log_create("subsystem", "Warning"); break; case ORTP_MESSAGE: type = OS_LOG_TYPE_INFO; - log = os_log_create("sip.linphone.org", "Notice"); + log = os_log_create("subsystem", "Notice"); break; case ORTP_DEBUG: case ORTP_TRACE: type = OS_LOG_TYPE_INFO; - log = os_log_create("sip.linphone.org", "Debug"); + log = os_log_create("subsystem", "Debug"); break; case ORTP_LOGLEV_END: return;