Skip to content

Commit e5aa03e

Browse files
committed
Updated logs
1 parent 18b5820 commit e5aa03e

38 files changed

+216
-526
lines changed

Branch-TestBed/Branch-SDK-Tests/BNCLogTests.m

Lines changed: 0 additions & 43 deletions
This file was deleted.

Branch-TestBed/Branch-SDK-Tests/BNCTestCase.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
#import "BNCTestCase.h"
12-
#import "BNCLog.h"
1312
#import "Branch.h"
1413
#import "BNCApplication+BNCTest.h"
1514

@@ -96,7 +95,6 @@ - (double) systemVersion {
9695

9796
+ (void) initialize {
9897
if (self != [BNCTestCase self]) return;
99-
BNCLogSetDisplayLevel(BNCLogLevelAll);
10098

10199
savedRandomizedBundleToken = [BNCPreferenceHelper sharedInstance].randomizedBundleToken;
102100
[Branch clearAll];

Branch-TestBed/Branch-SDK-Tests/BranchOpenRequestTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#import "BNCTestCase.h"
1010
#import "Branch.h"
11-
#import "BNCLog.h"
1211
#import "BNCApplication+BNCTest.h"
1312
#import "BranchOpenRequest.h"
1413
#import "BranchConstants.h"

Branch-TestBed/Branch-TestBed.xcodeproj/project.pbxproj

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
4D1683B72098C902008819E3 /* BNCTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D16838D2098C901008819E3 /* BNCTestCase.m */; };
4343
4D1683B82098C902008819E3 /* BNCEncodingUtilsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D16838E2098C901008819E3 /* BNCEncodingUtilsTests.m */; };
4444
4D1683B92098C902008819E3 /* BNCSystemObserverTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D16838F2098C901008819E3 /* BNCSystemObserverTests.m */; };
45-
4D1683BA2098C902008819E3 /* BNCLogTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1683902098C901008819E3 /* BNCLogTests.m */; };
4645
4D1683C02098C902008819E3 /* BranchUniversalObjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1683962098C901008819E3 /* BranchUniversalObjectTests.m */; };
4746
4D1683C12098C902008819E3 /* BNCApplicationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D1683972098C901008819E3 /* BNCApplicationTests.m */; };
4847
4D1683C62098C902008819E3 /* BranchEvent.Test.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D16839C2098C901008819E3 /* BranchEvent.Test.m */; };
@@ -66,7 +65,6 @@
6665
4D955CCD2035021400FB8008 /* BNCURLFilter.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D955CCB2035021400FB8008 /* BNCURLFilter.m */; };
6766
4D9607F41FBF9473008AB3C2 /* UIViewController+Branch.h in Headers */ = {isa = PBXBuildFile; fileRef = 4D9607F21FBF9472008AB3C2 /* UIViewController+Branch.h */; settings = {ATTRIBUTES = (Public, ); }; };
6867
4D9607F51FBF9473008AB3C2 /* UIViewController+Branch.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D9607F31FBF9473008AB3C2 /* UIViewController+Branch.m */; };
69-
4DA577181E67B1D600A43BDD /* BNCLog.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DA577161E67B1D600A43BDD /* BNCLog.m */; };
7068
4DB327FF1FA10B9000ACF9B0 /* BranchDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 4DB327FD1FA10B9000ACF9B0 /* BranchDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
7169
4DB328001FA10B9000ACF9B0 /* BranchDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DB327FE1FA10B9000ACF9B0 /* BranchDelegate.m */; };
7270
4DB567341E79F46000A8A324 /* BranchShareLink.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DB567321E79F46000A8A324 /* BranchShareLink.m */; };
@@ -78,7 +76,6 @@
7876
4DCAC8061F426F7C00405D1D /* BNCEncodingUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 464EA3991ACB38EC000E4094 /* BNCEncodingUtils.h */; };
7977
4DCAC8091F426F7C00405D1D /* BNCLinkCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E30BCF51A72FE7900AC7402 /* BNCLinkCache.h */; settings = {ATTRIBUTES = (Public, ); }; };
8078
4DCAC80A1F426F7C00405D1D /* BNCLinkData.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E30BCF21A71EEEE00AC7402 /* BNCLinkData.h */; settings = {ATTRIBUTES = (Public, ); }; };
81-
4DCAC80B1F426F7C00405D1D /* BNCLog.h in Headers */ = {isa = PBXBuildFile; fileRef = 4DA577151E67B1D600A43BDD /* BNCLog.h */; settings = {ATTRIBUTES = (Public, ); }; };
8279
4DCAC80C1F426F7C00405D1D /* BNCPreferenceHelper.h in Headers */ = {isa = PBXBuildFile; fileRef = 670016C11946309100A9E103 /* BNCPreferenceHelper.h */; settings = {ATTRIBUTES = (Public, ); }; };
8380
4DCAC80E1F426F7C00405D1D /* BNCSystemObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 670016C71946309100A9E103 /* BNCSystemObserver.h */; };
8481
4DCAC8101F426F7C00405D1D /* Branch.h in Headers */ = {isa = PBXBuildFile; fileRef = 670016BD1946309100A9E103 /* Branch.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -228,7 +225,7 @@
228225
C1614D56285BC8A00098946B /* LinkPresentation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1614D55285BC8A00098946B /* LinkPresentation.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
229226
C1614D5C285BD4AF0098946B /* BranchPluginSupport.h in Headers */ = {isa = PBXBuildFile; fileRef = C1614D5A285BD4AF0098946B /* BranchPluginSupport.h */; };
230227
C1614D5D285BD4AF0098946B /* BranchPluginSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = C1614D5B285BD4AF0098946B /* BranchPluginSupport.m */; };
231-
C16B975B2B6C21C900FB0631 /* BranchLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = C16B975A2B6C21C900FB0631 /* BranchLogger.h */; };
228+
C16B975B2B6C21C900FB0631 /* BranchLogger.h in Headers */ = {isa = PBXBuildFile; fileRef = C16B975A2B6C21C900FB0631 /* BranchLogger.h */; settings = {ATTRIBUTES = (Public, ); }; };
232229
C16B975D2B6C21DC00FB0631 /* BranchLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = C16B975C2B6C21DC00FB0631 /* BranchLogger.m */; };
233230
C16B975F2B716C4700FB0631 /* BranchLoggerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C16B975E2B716C4700FB0631 /* BranchLoggerTests.m */; };
234231
C17394602A8AEE0E006068F2 /* BNCProductCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = C173945F2A8AEE0E006068F2 /* BNCProductCategory.m */; };
@@ -337,7 +334,6 @@
337334
4D16838D2098C901008819E3 /* BNCTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BNCTestCase.m; sourceTree = "<group>"; };
338335
4D16838E2098C901008819E3 /* BNCEncodingUtilsTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BNCEncodingUtilsTests.m; sourceTree = "<group>"; };
339336
4D16838F2098C901008819E3 /* BNCSystemObserverTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BNCSystemObserverTests.m; sourceTree = "<group>"; };
340-
4D1683902098C901008819E3 /* BNCLogTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BNCLogTests.m; sourceTree = "<group>"; };
341337
4D1683952098C901008819E3 /* BranchEvent.Test.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BranchEvent.Test.swift; sourceTree = "<group>"; };
342338
4D1683962098C901008819E3 /* BranchUniversalObjectTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BranchUniversalObjectTests.m; sourceTree = "<group>"; };
343339
4D1683972098C901008819E3 /* BNCApplicationTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BNCApplicationTests.m; sourceTree = "<group>"; };
@@ -368,8 +364,6 @@
368364
4D955CCB2035021400FB8008 /* BNCURLFilter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BNCURLFilter.m; sourceTree = "<group>"; };
369365
4D9607F21FBF9472008AB3C2 /* UIViewController+Branch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIViewController+Branch.h"; sourceTree = "<group>"; };
370366
4D9607F31FBF9473008AB3C2 /* UIViewController+Branch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIViewController+Branch.m"; sourceTree = "<group>"; };
371-
4DA577151E67B1D600A43BDD /* BNCLog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BNCLog.h; sourceTree = "<group>"; };
372-
4DA577161E67B1D600A43BDD /* BNCLog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BNCLog.m; sourceTree = "<group>"; };
373367
4DA577201E67B28700A43BDD /* NSString+Branch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+Branch.h"; sourceTree = "<group>"; };
374368
4DA577211E67B28700A43BDD /* NSString+Branch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+Branch.m"; sourceTree = "<group>"; };
375369
4DB327FD1FA10B9000ACF9B0 /* BranchDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BranchDelegate.h; sourceTree = "<group>"; };
@@ -652,7 +646,6 @@
652646
5F73FC8023314697000EBD32 /* BNCJSONUtilityTests.m */,
653647
5F8BB66D278771890055D2DC /* BNCKeyChainTests.m */,
654648
4D1683842098C901008819E3 /* BNCLinkDataTests.m */,
655-
4D1683902098C901008819E3 /* BNCLogTests.m */,
656649
5FA9112E29BC662000F3D35C /* BNCNetworkInterfaceTests.m */,
657650
5FDF91582581CDF4009BE5A3 /* BNCPartnerParametersTests.m */,
658651
5FD1786D26DEE49C009696E3 /* BNCPasteboardTests.m */,
@@ -866,8 +859,6 @@
866859
7E30BCF61A72FE7900AC7402 /* BNCLinkCache.m */,
867860
7E30BCF21A71EEEE00AC7402 /* BNCLinkData.h */,
868861
7E30BCF31A71EEEE00AC7402 /* BNCLinkData.m */,
869-
4DA577151E67B1D600A43BDD /* BNCLog.h */,
870-
4DA577161E67B1D600A43BDD /* BNCLog.m */,
871862
C16B975A2B6C21C900FB0631 /* BranchLogger.h */,
872863
C16B975C2B6C21DC00FB0631 /* BranchLogger.m */,
873864
5F92B23D238486E200CA909B /* BNCNetworkInterface.h */,
@@ -1006,7 +997,6 @@
1006997
4DCAC80A1F426F7C00405D1D /* BNCLinkData.h in Headers */,
1007998
5F73FC7E23313F7A000EBD32 /* BNCJSONUtility.h in Headers */,
1008999
E729974D28E2BBFA007D91B2 /* BranchPasteControl.h in Headers */,
1009-
4DCAC80B1F426F7C00405D1D /* BNCLog.h in Headers */,
10101000
4DCAC80C1F426F7C00405D1D /* BNCPreferenceHelper.h in Headers */,
10111001
4DCAC8101F426F7C00405D1D /* Branch.h in Headers */,
10121002
4DCAC8111F426F7C00405D1D /* BranchActivityItemProvider.h in Headers */,
@@ -1314,7 +1304,6 @@
13141304
5F4101F626851DC7003699AD /* BNCPasteboard.m in Sources */,
13151305
4DBC88651F3A55B700E119BF /* NSString+Branch.m in Sources */,
13161306
54FF1F8E1BD1D4AE0004CE2E /* BranchUniversalObject.m in Sources */,
1317-
4DA577181E67B1D600A43BDD /* BNCLog.m in Sources */,
13181307
5F38021D24DCC2E800E6FAFD /* BranchLATDRequest.m in Sources */,
13191308
5F3D6714232C589100454FF1 /* BranchLastAttributedTouchData.m in Sources */,
13201309
3A78D576251EB5BF002A25CF /* BranchJsonConfig.m in Sources */,
@@ -1424,7 +1413,6 @@
14241413
5FE694382405FA2700E3AEE2 /* BNCCallbackMapTests.m in Sources */,
14251414
5FDB04F424E6156800F2F267 /* BNCSKAdNetworkTests.m in Sources */,
14261415
5FB6CC13264F0C7C0020E478 /* BNCServerRequestQueueTests.m in Sources */,
1427-
4D1683BA2098C902008819E3 /* BNCLogTests.m in Sources */,
14281416
4D1683AE2098C902008819E3 /* BNCLinkDataTests.m in Sources */,
14291417
4D7881FF209CF2D4002B750F /* BNCApplication+BNCTest.m in Sources */,
14301418
C15CC9E02ABCF8C8003CC339 /* BranchActivityItemTests.m in Sources */,

Branch-TestBed/Branch-TestBed/AppDelegate.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
#import "ViewController.h"
1313
#import "Branch.h"
1414
#import "BNCEncodingUtils.h"
15-
#import "BNCLog.h"
1615

1716
AppDelegate* appDelegate = nil;
18-
void APPLogHookFunction(NSDate*_Nonnull timestamp, BNCLogLevel level, NSString*_Nullable message);
17+
void APPLogHookFunction(NSDate*_Nonnull timestamp, BranchLogLevel level, NSString*_Nullable message);
1918

2019
@implementation AppDelegate
2120

@@ -212,7 +211,7 @@ -(void)application:(UIApplication *)application
212211
*/
213212

214213
// hook Function for SDK - Its for taking control of Logging messages.
215-
void APPLogHookFunction(NSDate*_Nonnull timestamp, BNCLogLevel level, NSString*_Nullable message) {
214+
void APPLogHookFunction(NSDate*_Nonnull timestamp, BranchLogLevel level, NSString*_Nullable message) {
216215
[appDelegate processLogMessage:message];
217216
}
218217

Branch-TestBed/Branch-TestBed/Branch-TestBed-Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<dict>
55
<key>AppIdentifierPrefix</key>
66
<string>$(AppIdentifierPrefix)</string>
7-
<key>BranchLogLevel</key>
8-
<string>BNCLogLevelAll</string>
97
<key>CFBundleDevelopmentRegion</key>
108
<string>en</string>
119
<key>CFBundleDisplayName</key>

BranchSDK/BNCAppGroupsData.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//
88

99
#import "BNCAppGroupsData.h"
10-
11-
#import "BNCLog.h"
1210
#import "BNCApplication.h"
1311
#import "BNCPreferenceHelper.h"
1412
#import "BNCSystemObserver.h"

BranchSDK/BNCApplication.m

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#import "BNCApplication.h"
12-
#import "BNCLog.h"
12+
#import "BranchLogger.h"
1313
#import "BNCKeyChain.h"
1414

1515
static NSString*const kBranchKeychainService = @"BranchKeychainService";
@@ -87,12 +87,12 @@ + (NSDate*) currentBuildDate {
8787
NSFileManager *fileManager = [NSFileManager defaultManager];
8888
NSDictionary *attributes = [fileManager attributesOfItemAtPath:appURL.path error:&error];
8989
if (error) {
90-
BNCLogError([NSString stringWithFormat:@"Can't get build date: %@.", error]);
90+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Can't get build date: %@.", error] error:error];
9191
return nil;
9292
}
9393
NSDate * buildDate = [attributes fileCreationDate];
9494
if (buildDate == nil || [buildDate timeIntervalSince1970] <= 0.0) {
95-
BNCLogError([NSString stringWithFormat:@"Invalid build date: %@.", buildDate]);
95+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Invalid build date: %@.", buildDate] error:nil];
9696
}
9797
return buildDate;
9898
}
@@ -111,7 +111,8 @@ + (NSDate*) firstInstallBuildDate {
111111
forService:kBranchKeychainService
112112
key:kBranchKeychainFirstBuildKey
113113
cloudAccessGroup:nil];
114-
if (error) BNCLogError([NSString stringWithFormat:@"Keychain store: %@.", error]);
114+
if (error) [[BranchLogger shared] logError:[NSString stringWithFormat:@"Keychain store: %@.", error] error:error];
115+
115116
return firstBuildDate;
116117
}
117118

@@ -124,7 +125,7 @@ + (NSDate *) currentInstallDate {
124125
#endif
125126

126127
if (installDate == nil || [installDate timeIntervalSince1970] <= 0.0) {
127-
BNCLogWarning([NSString stringWithFormat:@"Invalid install date, using [NSDate date]."]);
128+
[[BranchLogger shared] logWarning:[NSString stringWithFormat:@"Invalid install date, using [NSDate date]."]];
128129
}
129130
return installDate;
130131
}
@@ -135,7 +136,7 @@ + (NSDate *)creationDateForLibraryDirectory {
135136
NSURL *directoryURL = [[fileManager URLsForDirectory:NSLibraryDirectory inDomains:NSUserDomainMask] firstObject];
136137
NSDictionary *attributes = [fileManager attributesOfItemAtPath:directoryURL.path error:&error];
137138
if (error) {
138-
BNCLogError([NSString stringWithFormat:@"Can't get creation date for Library directory: %@", error]);
139+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Can't get creation date for Library directory: %@", error] error:error];
139140
return nil;
140141
}
141142
return [attributes fileCreationDate];
@@ -155,7 +156,7 @@ + (NSDate*) firstInstallDate {
155156
// save filesystem time to keychain
156157
error = [BNCKeyChain storeDate:firstInstallDate forService:kBranchKeychainService key:kBranchKeychainFirstInstalldKey cloudAccessGroup:nil];
157158
if (error) {
158-
BNCLogError([NSString stringWithFormat:@"Keychain store: %@.", error]);
159+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Keychain store: %@.", error] error:error];
159160
}
160161
return firstInstallDate;
161162
}

BranchSDK/BNCDeviceInfo.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#import "BNCDeviceInfo.h"
1010
#import "BNCPreferenceHelper.h"
1111
#import "BNCSystemObserver.h"
12-
#import "BNCLog.h"
1312
#import "BNCConfig.h"
1413
#import "BNCNetworkInterface.h"
1514
#import "BNCReachability.h"

BranchSDK/BNCEncodingUtils.m

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#import "BNCEncodingUtils.h"
1010
#import "BNCPreferenceHelper.h"
11-
#import "BNCLog.h"
1211
#import <CommonCrypto/CommonDigest.h>
12+
#import "BranchLogger.h"
1313

1414
#pragma mark BNCWireFormat
1515

@@ -167,7 +167,7 @@ + (NSString *)encodeDictionaryToJsonString:(NSDictionary *)dictionary {
167167

168168
// protect against non-string keys
169169
if (![key isKindOfClass:[NSString class]]) {
170-
BNCLogError([NSString stringWithFormat:@"Unexpected key type %@. Skipping key.", [key class]]);
170+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Unexpected key type %@. Skipping key.", [key class]] error:nil];
171171
continue;
172172
}
173173

@@ -208,7 +208,7 @@ + (NSString *)encodeDictionaryToJsonString:(NSDictionary *)dictionary {
208208
}
209209
else {
210210
// If this type is not a known type, don't attempt to encode it.
211-
BNCLogError([NSString stringWithFormat:@"Cannot encode value for key %@. The value is not an accepted type.", key]);
211+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Cannot encode value for key %@. The value is not an accepted type.", key] error:nil];
212212
continue;
213213
}
214214

@@ -230,7 +230,7 @@ + (NSString *)encodeDictionaryToJsonString:(NSDictionary *)dictionary {
230230

231231
[encodedDictionary appendString:@"}"];
232232

233-
BNCLogDebugSDK([NSString stringWithFormat:@"Encoded dictionary: %@.", encodedDictionary]);
233+
[[BranchLogger shared] logDebug:[NSString stringWithFormat:@"Encoded dictionary: %@.", encodedDictionary]];
234234
return encodedDictionary;
235235
}
236236

@@ -272,7 +272,7 @@ + (NSString *)encodeArrayToJsonString:(NSArray *)array {
272272
}
273273
else {
274274
// If this type is not a known type, don't attempt to encode it.
275-
BNCLogError([NSString stringWithFormat:@"Cannot encode value %@. The value is not an accepted type.", obj]);
275+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Cannot encode value %@. The value is not an accepted type.", obj] error:nil];
276276
continue;
277277
}
278278

@@ -290,7 +290,8 @@ + (NSString *)encodeArrayToJsonString:(NSArray *)array {
290290
[encodedArray deleteCharactersInRange:NSMakeRange([encodedArray length] - 1, 1)];
291291
[encodedArray appendString:@"]"];
292292

293-
BNCLogDebugSDK([NSString stringWithFormat:@"Encoded array: %@.", encodedArray]);
293+
[[BranchLogger shared] logDebug:[NSString stringWithFormat:@"Encoded array: %@.", encodedArray]];
294+
294295
return encodedArray;
295296
}
296297

@@ -323,7 +324,7 @@ + (NSString *)encodeDictionaryToQueryString:(NSDictionary *)dictionary {
323324
}
324325
else {
325326
// If this type is not a known type, don't attempt to encode it.
326-
BNCLogError([NSString stringWithFormat:@"Cannot encode value %@. The value is not an accepted type.", obj]);
327+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Cannot encode value %@. The value is not an accepted type.", obj] error:nil];
327328
continue;
328329
}
329330

0 commit comments

Comments
 (0)