Clean up ahead of CR.

pull/1/head
Matthew Chen 6 years ago
parent 1d40cbfb41
commit 1b1312c455

@ -67,7 +67,7 @@ public class AccountManager: NSObject {
// - simulators, none of which support receiving push notifications
// - on iOS11 devices which have disabled "Allow Notifications" and disabled "Enable Background Refresh" in the system settings.
Logger.info("Recovered push registration error. Registering for manual message fetcher because push not supported: \(description)")
return self.registerForManualMessageFetching()
return self.enableManualMessageFetching()
default:
throw error
}
@ -113,7 +113,7 @@ public class AccountManager: NSObject {
}
}
func registerForManualMessageFetching() -> Promise<Void> {
func enableManualMessageFetching() -> Promise<Void> {
TSAccountManager.sharedInstance().setIsManualMessageFetchEnabled(true)
// Try to update the account attributes to reflect this change.

@ -191,12 +191,6 @@ typedef void (^failureBlock)(NSURLSessionDataTask *task, NSError *error);
return ^(NSURLSessionDataTask *_Nullable task, NSError *_Nonnull networkError) {
NSInteger statusCode = [task statusCode];
DDLogInfo(@"statusCode: %zd", statusCode);
DDLogInfo(@"statusCode: %@", task.originalRequest.URL);
DDLogInfo(@"allHTTPHeaderFields: %@", task.originalRequest.allHTTPHeaderFields);
DDLogInfo(@"HTTPBody: %@", task.originalRequest.HTTPBody);
DDLogInfo(@"parameters: %@", request.parameters);
#ifdef DEBUG
[TSNetworkManager logCurlForTask:task];
#endif

Loading…
Cancel
Save