Skip to content

Commit 1a0a5ae

Browse files
committed
Upgrade networking failures to warning. This includes no network which is common.
1 parent d5f5c0e commit 1a0a5ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/BranchSDK/BNCServerInterface.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ - (void)genericHTTPRequest:(NSURLRequest *)request retryNumber:(NSInteger)retryN
122122

123123
} else {
124124
if (status != 200) {
125-
[[BranchLogger shared] logDebug: [NSString stringWithFormat:@"Giving up on request with HTTP status code %ld", (long)status] error:underlyingError];
125+
[[BranchLogger shared] logWarning: [NSString stringWithFormat:@"Giving up on request with HTTP status code %ld", (long)status] error:underlyingError];
126126
}
127127

128128
// Don't call on the main queue since it might be blocked.
@@ -301,7 +301,7 @@ - (BNCServerResponse *)processServerResponse:(NSURLResponse *)response data:(NSD
301301
serverResponse.requestId = requestId;
302302

303303
if ([[BranchLogger shared] shouldLog:BranchLogLevelDebug]) {
304-
[[BranchLogger shared] logDebug:@"Request failed with NSError" error:error];
304+
[[BranchLogger shared] logWarning:@"Request failed with NSError" error:error];
305305
}
306306
}
307307

Sources/BranchSDK/BNCServerRequestQueue.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ - (id)unarchiveObjectFromData:(NSData *)data {
317317
id object = [NSKeyedUnarchiver unarchivedObjectOfClasses:[BNCServerRequestQueue encodableClasses] fromData:data error:&error];
318318

319319
if (error) {
320-
[[BranchLogger shared] logWarning:@"Failed to unarchive: %@" error:error];
320+
[[BranchLogger shared] logWarning:@"Failed to unarchive" error:error];
321321
}
322322

323323
return object;

0 commit comments

Comments
 (0)