Skip to content

Commit

Permalink
Added some logging to better understand what's going on
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruin-NR committed Dec 17, 2024
1 parent 8e3743f commit 3945ad4
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ - (void) testRemoteLogLevels {
// Allow other scheduled run loop activities to proceed
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
}
if (!operationCompleted) {
NSLog(@"Failed to detect 7 writes to the log file.");
}

NSError* error;
NSData* logData = [NRLogger logFileData:&error];
Expand Down Expand Up @@ -303,7 +306,9 @@ - (void) testLocalLogLevels {
// Allow other scheduled run loop activities to proceed
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
}

if (!operationCompleted) {
NSLog(@"Failed to detect 4 writes to the log file.");
}
NSError* error;
NSData* logData = [NRLogger logFileData:&error];
if(error){
Expand Down Expand Up @@ -384,6 +389,9 @@ - (void) testAutoCollectedLogs {
// Allow other scheduled run loop activities to proceed
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
}
if (!operationCompleted) {
NSLog(@"Failed to detect 5 writes to the log file.");
}

[NRAutoLogCollector restoreStandardOutputAndError];

Expand Down

0 comments on commit 3945ad4

Please sign in to comment.