зеркало из https://github.com/nextcloud/talk-ios.git
Decrease the amount of log messages
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
Родитель
fb879a791e
Коммит
bac0653839
|
@ -684,7 +684,8 @@ static NSString * const kNCVideoTrackKind = @"video";
|
|||
|
||||
- (void)externalSignalingController:(NCExternalSignalingController *)externalSignalingController didReceivedSignalingMessage:(NSDictionary *)signalingMessageDict
|
||||
{
|
||||
NSLog(@"External signaling message received: %@", signalingMessageDict);
|
||||
//NSLog(@"External signaling message received: %@", signalingMessageDict);
|
||||
|
||||
NCSignalingMessage *signalingMessage = [NCSignalingMessage messageFromExternalSignalingJSONDictionary:signalingMessageDict];
|
||||
[self checkIfPendingOffer:signalingMessage];
|
||||
[self processSignalingMessage:signalingMessage];
|
||||
|
@ -692,7 +693,7 @@ static NSString * const kNCVideoTrackKind = @"video";
|
|||
|
||||
- (void)externalSignalingController:(NCExternalSignalingController *)externalSignalingController didReceivedParticipantListMessage:(NSDictionary *)participantListMessageDict
|
||||
{
|
||||
NSLog(@"External participants message received: %@", participantListMessageDict);
|
||||
//NSLog(@"External participants message received: %@", participantListMessageDict);
|
||||
|
||||
NSArray *usersInRoom = [participantListMessageDict objectForKey:@"users"];
|
||||
|
||||
|
@ -954,7 +955,7 @@ static NSString * const kNCVideoTrackKind = @"video";
|
|||
[sessions addObject:sessionId];
|
||||
}
|
||||
}
|
||||
NSLog(@"InCall sessions: %@", sessions);
|
||||
//NSLog(@"InCall sessions: %@", sessions);
|
||||
return sessions;
|
||||
}
|
||||
|
||||
|
|
|
@ -503,7 +503,7 @@ static NSTimeInterval kWebSocketTimeoutInterval = 15;
|
|||
{
|
||||
NSString *eventType = [eventDict objectForKey:@"type"];
|
||||
if ([eventType isEqualToString:@"update"]) {
|
||||
NSLog(@"Participant list changed: %@", [eventDict objectForKey:@"update"]);
|
||||
//NSLog(@"Participant list changed: %@", [eventDict objectForKey:@"update"]);
|
||||
[self.delegate externalSignalingController:self didReceivedParticipantListMessage:[eventDict objectForKey:@"update"]];
|
||||
} else {
|
||||
NSLog(@"Unknown room event: %@", eventDict);
|
||||
|
@ -512,7 +512,7 @@ static NSTimeInterval kWebSocketTimeoutInterval = 15;
|
|||
|
||||
- (void)messageReceived:(NSDictionary *)messageDict
|
||||
{
|
||||
NSLog(@"Message received");
|
||||
//NSLog(@"Message received");
|
||||
[self.delegate externalSignalingController:self didReceivedSignalingMessage:messageDict];
|
||||
}
|
||||
|
||||
|
@ -600,7 +600,7 @@ static NSTimeInterval kWebSocketTimeoutInterval = 15;
|
|||
messageString = [[NSString alloc] initWithData:messageData encoding:NSUTF8StringEncoding];
|
||||
}
|
||||
|
||||
NSLog(@"WebSocket didReceiveMessage: %@", messageString);
|
||||
//NSLog(@"WebSocket didReceiveMessage: %@", messageString);
|
||||
NSDictionary *messageDict = [weakSelf getWebSocketMessageFromJSONData:messageData];
|
||||
NSString *messageType = [messageDict objectForKey:@"type"];
|
||||
if ([messageType isEqualToString:@"hello"]) {
|
||||
|
|
|
@ -404,7 +404,8 @@
|
|||
}
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
NSLog(@"Did create local session description of type %@ for peer %@", [RTCSessionDescription stringForType:sdp.type], self->_peerId);
|
||||
//NSLog(@"Did create local session description of type %@ for peer %@", [RTCSessionDescription stringForType:sdp.type], self->_peerId);
|
||||
|
||||
// Set H264 as preferred codec.
|
||||
RTCSessionDescription *sdpPreferringCodec = [ARDSDPUtils descriptionForDescription:sdp preferredVideoCodec:@"H264"];
|
||||
__weak NCPeerConnection *weakSelf = self;
|
||||
|
@ -429,10 +430,12 @@
|
|||
}
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
NSLog(@"Did set remote session description of type %@ for peer %@", [RTCSessionDescription stringForType:sessionDescription.type], self->_peerId);
|
||||
//NSLog(@"Did set remote session description of type %@ for peer %@", [RTCSessionDescription stringForType:sessionDescription.type], self->_peerId);
|
||||
|
||||
// If we just set a remote offer we need to create an answer and set it as local description.
|
||||
if (self->_peerConnection.signalingState == RTCSignalingStateHaveRemoteOffer) {
|
||||
NSLog(@"Creating answer for peer %@", self->_peerId);
|
||||
//NSLog(@"Creating answer for peer %@", self->_peerId);
|
||||
|
||||
//Create data channel before sending answer
|
||||
RTCDataChannelConfiguration* config = [[RTCDataChannelConfiguration alloc] init];
|
||||
config.isNegotiated = NO;
|
||||
|
|
|
@ -137,7 +137,7 @@ static NSTimeInterval kSendMessageTimeoutInterval = 15;
|
|||
[self setMessageTimeout];
|
||||
}
|
||||
|
||||
NSLog(@"Sending: %@", self.webSocketMessage);
|
||||
//NSLog(@"Sending: %@", self.webSocketMessage);
|
||||
NSURLSessionWebSocketMessage *message = [[NSURLSessionWebSocketMessage alloc] initWithString:self.webSocketMessage];
|
||||
[webSocketTask sendMessage:message completionHandler:^(NSError * _Nullable error) {
|
||||
if (error && self.completionBlock) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче