Skip to content

Commit

Permalink
We need default priority or the collected logs don't maintain perfect…
Browse files Browse the repository at this point in the history
… accuracy
  • Loading branch information
mbruin-NR committed Oct 28, 2024
1 parent 426de89 commit 79e0d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Agent/Utilities/NRAutoLogCollector.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ + (BOOL) redirectStandardOutputAndError {
close(stderrPipe[1]); // Close the original write end of the stderr pipe

// Read from the pipes in background threads
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[NRAutoLogCollector readAndLog:stdoutPipe[0]];
});
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[NRAutoLogCollector readAndLog:stderrPipe[0]];
});

Expand Down

0 comments on commit 79e0d4b

Please sign in to comment.