Skip to content

Commit

Permalink
Removed one method
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Feb 14, 2024
1 parent 696a513 commit fcd4194
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion Branch-TestBed/Branch-TestBed/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ - (BOOL)application:(UIApplication *)application

// test pre init support
//[self testDispatchToIsolationQueue:branch]

[branch enableLoggingAtLevel:BranchLogLevelVerbose withCallback:^(NSString * _Nonnull message, BranchLogLevel logLevel, NSError * _Nullable error) {
// Handle the log message and error here. For example, printing to the console:
if (error) {
Expand Down
1 change: 0 additions & 1 deletion BranchSDK/Branch.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ extern NSString * __nonnull const BNCSpotlightFeature;
Enable debug messages to os_log.
*/
- (void)enableLogging;
- (void)enableLoggingAtLevel:(BranchLogLevel)logLevel;
- (void)enableLoggingAtLevel:(BranchLogLevel)logLevel withCallback:(nullable BranchLogCallback)callback;

/**
Expand Down
6 changes: 1 addition & 5 deletions BranchSDK/Branch.m
Original file line number Diff line number Diff line change
Expand Up @@ -418,13 +418,9 @@ + (BOOL)branchKeyIsSet {
}

- (void)enableLogging {
[self enableLoggingAtLevel:BranchLogLevelDebug];
}

- (void)enableLoggingAtLevel:(BranchLogLevel)logLevel {
BranchLogger *logger = [BranchLogger shared];
logger.loggingEnabled = YES;
logger.logLevelThreshold = logLevel;
logger.logLevelThreshold = BranchLogLevelDebug;
}

- (void)enableLoggingAtLevel:(BranchLogLevel)logLevel withCallback:(nullable BranchLogCallback)callback {
Expand Down

0 comments on commit fcd4194

Please sign in to comment.