IOS-1475 Remove (sync) NSLog. IOSAD-103
authorDirk Zimmermann <dz@pep.security>
Tue, 12 Feb 2019 10:13:43 +0100
branchIOSAD-103
changeset 7853c37225acd2b
parent 784 d585116a1af8
child 786 f5eeb38557f3
IOS-1475 Remove (sync) NSLog.
pEpObjCAdapter/PEPQueue.m
pEpObjCAdapter/PEPSessionProvider.m
pEpObjCAdapter/PEPSync.m
     1.1 --- a/pEpObjCAdapter/PEPQueue.m	Mon Feb 11 13:19:23 2019 +0100
     1.2 +++ b/pEpObjCAdapter/PEPQueue.m	Tue Feb 12 10:13:43 2019 +0100
     1.3 @@ -36,7 +36,6 @@
     1.4      [_cond lock];
     1.5      
     1.6      if (_queue) {
     1.7 -        NSLog(@"*** enqueue %@", object);
     1.8          [_queue insertObject:object atIndex:0];
     1.9      }
    1.10      
    1.11 @@ -82,7 +81,6 @@
    1.12  
    1.13      [_cond unlock];
    1.14  
    1.15 -    NSLog(@"*** dequeue %@", tmp);
    1.16      return tmp;
    1.17  }
    1.18  
     2.1 --- a/pEpObjCAdapter/PEPSessionProvider.m	Mon Feb 11 13:19:23 2019 +0100
     2.2 +++ b/pEpObjCAdapter/PEPSessionProvider.m	Tue Feb 12 10:13:43 2019 +0100
     2.3 @@ -134,14 +134,9 @@
     2.4  
     2.5  
     2.6      if ([NSThread isMainThread]) {
     2.7 -        NSLog(@"*** assuring main session on main thread");
     2.8          creationBlock();
     2.9 -        NSLog(@"*** assuring main session on main thread - DONE");
    2.10      } else {
    2.11 -        NSLog(@"*** assuring main session on background thread %@",
    2.12 -              [[NSThread currentThread] name]);
    2.13          dispatch_sync(dispatch_get_main_queue(), creationBlock);
    2.14 -        NSLog(@"*** assuring main session on background thread - DONE");
    2.15      }
    2.16  }
    2.17  
     3.1 --- a/pEpObjCAdapter/PEPSync.m	Mon Feb 11 13:19:23 2019 +0100
     3.2 +++ b/pEpObjCAdapter/PEPSync.m	Tue Feb 12 10:13:43 2019 +0100
     3.3 @@ -177,7 +177,6 @@
     3.4  
     3.5  - (void)shutdown
     3.6  {
     3.7 -    NSLog(@"*** shutdown");
     3.8      if (self.syncThread) {
     3.9          [self injectSyncEvent:nil];
    3.10          [self.conditionLockForJoiningSyncThread lockWhenCondition:YES];
    3.11 @@ -205,8 +204,7 @@
    3.12          do_sync_protocol(session.session, nil);
    3.13          unregister_sync_callbacks(session.session);
    3.14      } else {
    3.15 -        // indicate error, maybe through `object`?
    3.16 -        NSLog(@"*** ERROR: Could not create internal session");
    3.17 +        // TODO: indicate error, maybe through `object`?
    3.18      }
    3.19  
    3.20      session = nil;
    3.21 @@ -226,9 +224,6 @@
    3.22  
    3.23  - (int)injectSyncEvent:(SYNC_EVENT)event
    3.24  {
    3.25 -    if (event == NULL) {
    3.26 -        NSLog(@"*** enqueueing NULL");
    3.27 -    }
    3.28      [self.queue enqueue:[NSValue valueWithBytes:&event objCType:@encode(SYNC_EVENT)]];
    3.29      return 0;
    3.30  }
    3.31 @@ -257,7 +252,6 @@
    3.32          [value getValue:&event];
    3.33          return event;
    3.34      } else {
    3.35 -        NSLog(@"*** timeout event");
    3.36          return new_sync_timeout_event();
    3.37      }
    3.38  }