我的调试日志中充满了类似的语句,触发速度非常快(注意时间戳只有几百秒),无法确定是什么触发了它。我已经为我的所有委托方法添加了断点。谁知道我应该在哪里看?
2017-08-02 14:52:33.653309-0400 APP[1028:108103] IPM[3]: 0x16ef3b000 | 08/02/14:52:33.653 | INFO | IPM | channels: got sync list token: /<SAME_TOKEN>/ size: 250
2017-08-02 14:52:33.654128-0400 APP[1028:108103] IPM[4]: 0x16ef3b000 | 08/02/14:52:33.654 | DEBUG | IPM | requesting sync list <SAME_TOKEN>
2017-08-02 14:52:33.656665-0400 APP[1028:108103] IPM[3]: 0x16ef3b000 | 08/02/14:52:33.656 | INFO | IPM | channels: got sync list token: /<SAME_TOKEN>/ size: 250
2017-08-02 14:52:33.657417-0400 APP[1028:108103] IPM[4]: 0x16ef3b000 | 08/02/14:52:33.657 | DEBUG | IPM | requesting sync list <SAME_TOKEN>
2017-08-02 14:52:33.659963-0400 APP[1028:108103] IPM[3]: 0x16ef3b000 | 08/02/14:52:33.659 | INFO | IPM | channels: got sync list token: /<SAME_TOKEN>/ size: 250
2017-08-02 14:52:33.660894-0400 APP[1028:108103] IPM[4]: 0x16ef3b000 | 08/02/14:52:33.660 | DEBUG | IPM | requesting sync list <SAME_TOKEN>
我使用[TwilioChatClient setLogLevel:TCHLogLevelDebug];
我正在使用以下委托方法,在所有这些方法的开头都有断点,没有一个正在命中:
-(void)chatClient:(TwilioChatClient *)client connectionStateUpdated:(TCHClientConnectionState)state
-(void)chatClient:(TwilioChatClient *)client synchronizationStatusUpdated:(TCHClientSynchronizationStatus)status
-(void)chatClient:(TwilioChatClient *)client errorReceived:(TCHError *)error
-(void)chatClient:(TwilioChatClient *)client notificationNewMessageReceivedForChannelSid:(NSString *)channelSid messageIndex:(NSUInteger)messageIndex
-(void)accessManagerTokenExpired:(TwilioAccessManager *)accessManager
-(void)accessManagerTokenInvalid:(TwilioAccessManager *)accessManager
-(void)accessManagerTokenWillExpire:(TwilioAccessManager *)accessManager
答案 0 :(得分:0)
Twilio开发者传道者在这里。
这些日志只是调试日志,显示了SDK的内部工作原理。您可以通过将日志级别设置为更高级别来重新关闭它们,例如TCHLogLevelWarning
。