Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Nov 7, 2024
1 parent c2c4668 commit f432e47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/automation-trigger-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
uses: actions/checkout@v4
with:
repository: BranchMetrics/qentelli-saas-sdk-testing-automation
ref: SDK-2465
token: ${{ secrets.BRANCHLET_ACCESS_TOKEN_PUBLIC }}
- name: Set up JDK 11
uses: actions/setup-java@v4
Expand Down
6 changes: 2 additions & 4 deletions Branch-TestBed/Branch-TestBed/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ - (BOOL)application:(UIApplication *)application
// Handle the log message and error here. For example, printing to the console:
if (error) {
NSLog(@"[BranchLog] Level: %lu, Message: %@, Error: %@", (unsigned long)logLevel, message, error.localizedDescription);
//Add to file here
} else {
NSLog(@"[BranchLog] Level: %lu, Message: %@", (unsigned long)logLevel, message);
}
Expand Down Expand Up @@ -243,7 +242,7 @@ void APPLogHookFunction(NSDate*_Nonnull timestamp, BranchLogLevel level, NSStrin
[appDelegate processLogMessage:formattedMessage];
}

// Writes message to log File.
// Writes message to Log File.
- (void) processLogMessage:(NSString *)message {

if (!self.logFileName)
Expand All @@ -255,13 +254,12 @@ - (void) processLogMessage:(NSString *)message {
[fileHandle seekToEndOfFile];
[fileHandle writeData:[message dataUsingEncoding:NSUTF8StringEncoding]];
[fileHandle closeFile];
} else { // Create file if it doesnt exist
} else {
[message writeToFile:self.logFileName
atomically:NO
encoding:NSStringEncodingConversionAllowLossy
error:nil];
}
NSLog(@"%@", message); // Log messages to console - remove if required.
}
}

Expand Down

0 comments on commit f432e47

Please sign in to comment.