Skip to content

Commit 79e0d4b

Browse files
committed
We need default priority or the collected logs don't maintain perfect accuracy
1 parent 426de89 commit 79e0d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Agent/Utilities/NRAutoLogCollector.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ + (BOOL) redirectStandardOutputAndError {
5151
close(stderrPipe[1]); // Close the original write end of the stderr pipe
5252

5353
// Read from the pipes in background threads
54-
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
54+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
5555
[NRAutoLogCollector readAndLog:stdoutPipe[0]];
5656
});
57-
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
57+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
5858
[NRAutoLogCollector readAndLog:stderrPipe[0]];
5959
});
6060

0 commit comments

Comments
 (0)