From a346465db569de505584122cdb6ae6b4da91732c Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 14 Jun 2018 12:47:47 -0400 Subject: [PATCH] tune down logging // FREEBIE --- .../AppSettings/OWSLinkedDevicesTableViewController.m | 2 -- .../src/Messages/DeviceSyncing/OWSSyncGroupsMessage.m | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m b/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m index 9e8ca0f4f..b268926b4 100644 --- a/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m +++ b/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m @@ -195,8 +195,6 @@ int const OWSLinkedDevicesTableViewControllerSectionAddDevice = 1; { OWSAssertIsOnMainThread(); - DDLogVerbose(@"%@ %s", self.logTag, __PRETTY_FUNCTION__); - // External database modifications can't be converted into incremental updates, // so rebuild everything. This is expensive and usually isn't necessary, but // there's no alternative. diff --git a/SignalServiceKit/src/Messages/DeviceSyncing/OWSSyncGroupsMessage.m b/SignalServiceKit/src/Messages/DeviceSyncing/OWSSyncGroupsMessage.m index e3aa52248..80cdcec2d 100644 --- a/SignalServiceKit/src/Messages/DeviceSyncing/OWSSyncGroupsMessage.m +++ b/SignalServiceKit/src/Messages/DeviceSyncing/OWSSyncGroupsMessage.m @@ -8,6 +8,7 @@ #import "OWSSignalServiceProtos.pb.h" #import "TSAttachment.h" #import "TSAttachmentStream.h" +#import "TSContactThread.h" #import "TSGroupModel.h" #import "TSGroupThread.h" @@ -58,7 +59,10 @@ NS_ASSUME_NONNULL_BEGIN enumerateCollectionObjectsWithTransaction:transaction usingBlock:^(id obj, BOOL *stop) { if (![obj isKindOfClass:[TSGroupThread class]]) { - DDLogVerbose(@"Ignoring non group thread in thread collection: %@", obj); + if (![obj isKindOfClass:[TSContactThread class]]) { + DDLogWarn( + @"Ignoring non group thread in thread collection: %@", obj); + } return; } TSGroupThread *groupThread = (TSGroupThread *)obj;