From aedf7bfa4a8d093ddcfb5b734066454bcbe0224f Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Fri, 5 Jun 2015 11:01:36 +0200 Subject: [PATCH] fix a crash in case of trace issued by the SIP publish --- Classes/LinphoneManager.m | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index d5c769217..2f3fa43fc 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -529,24 +529,13 @@ void linphone_iphone_log_handler(int lev, const char *fmt, va_list args){ NSString* format = [[NSString alloc] initWithUTF8String:fmt]; NSString* formatedString = [[NSString alloc] initWithFormat:format arguments:args]; //since \r are interpreted like \n, avoid double new lines when logging packets - NSLogv([formatedString stringByReplacingOccurrencesOfString:@"\r\n" withString:@"\n"], nil); + NSLog([formatedString stringByReplacingOccurrencesOfString:@"\r\n" withString:@"\n"], nil); } //Error/warning log handler static void linphone_iphone_log(struct _LinphoneCore * lc, const char * message) { NSString* log = [NSString stringWithCString:message encoding:[NSString defaultCStringEncoding]]; NSLog(log, NULL); - -// dispatch_async(dispatch_get_main_queue(), ^{ -// if([[LinphoneManager instance].logs count] >= LINPHONE_LOGS_MAX_ENTRY) { -// [[LinphoneManager instance].logs removeObjectAtIndex:0]; -// } -// [[LinphoneManager instance].logs addObject:log]; -// -// // Post event -// NSDictionary *dict = [NSDictionary dictionaryWithObject:log forKey:@"log"]; -// [[NSNotificationCenter defaultCenter] postNotificationName:kLinphoneLogsUpdate object:[LinphoneManager instance] userInfo:dict]; -// }); }