@@ -459,13 +459,10 @@ private extension Process {
459
459
let data = handler. availableData
460
460
461
461
if data. isEmpty { // EOF
462
- logger? . info ( " ShellOut.launchBash: Reporting EOF on stdout (readabilityHandler, command: \( command) ) " )
463
462
handler. readabilityHandler = nil
464
463
outputGroup. leave ( )
465
464
} else {
466
- logger? . info ( " ShellOut.launchBash: Read \( data. count) bytes from stdout (readabilityHandler, command: \( command) ) " )
467
465
outputQueue. async {
468
- logger? . info ( " ShellOut.launchBash: Reporting \( data. count) bytes from stdout (readabilityHandler, command: \( command) ) " )
469
466
outputData. append ( data)
470
467
outputHandle? . write ( data)
471
468
}
@@ -477,7 +474,6 @@ private extension Process {
477
474
let data = handler. availableData
478
475
479
476
if data. isEmpty { // EOF
480
- logger? . info ( " ShellOut.launchBash: Reporting EOF on stderr (readabilityHandler, command: \( command) ) " )
481
477
handler. readabilityHandler = nil
482
478
outputGroup. leave ( )
483
479
} else {
@@ -491,18 +487,13 @@ private extension Process {
491
487
try self . run ( )
492
488
self . waitUntilExit ( )
493
489
494
- logger? . info ( " ShellOut.launchBash: Waiting on EOF... (command: \( command) ) " )
495
490
if outputGroup. wait ( timeout: . now( ) + . milliseconds( 100 ) ) == . timedOut {
496
- logger? . info ( " ShellOut.launchBash: Warning: Timed out waiting for EOF! (command: \( command) ) " )
497
- } else {
498
- logger? . info ( " ShellOut.launchBash: EOFs received (command: \( command) ) " )
491
+ logger? . warning ( " ShellOut.launchBash: Timed out waiting for EOF! (command: \( command) ) " )
499
492
}
500
493
501
494
// We know as of this point that either all blocks have been submitted to the
502
495
// queue already, or we've reached our wait timeout.
503
496
return try outputQueue. sync {
504
- logger? . info ( " ShellOut.launchBash: Stdout: \( outputData as NSData ) (command: \( command) ) " )
505
-
506
497
// Do not try to readToEnd() here; if we already got an EOF, there's definitely
507
498
// nothing to read, and if we timed out, trying to read here will just block
508
499
// even longer.
0 commit comments