6
6
7
7
import Foundation
8
8
import Dispatch
9
- import Logging
10
9
11
10
// MARK: - API
12
11
@@ -34,7 +33,6 @@ import Logging
34
33
arguments: [ Argument ] = [ ] ,
35
34
at path: String = " . " ,
36
35
process: Process = . init( ) ,
37
- logger: Logger ? = nil ,
38
36
outputHandle: FileHandle ? = nil ,
39
37
errorHandle: FileHandle ? = nil ,
40
38
environment: [ String : String ] ? = nil ,
@@ -44,7 +42,6 @@ import Logging
44
42
45
43
return try process. launchBash (
46
44
with: command,
47
- logger: logger,
48
45
outputHandle: outputHandle,
49
46
errorHandle: errorHandle,
50
47
environment: environment,
@@ -93,7 +90,6 @@ import Logging
93
90
to command: ShellOutCommand ,
94
91
at path: String = " . " ,
95
92
process: Process = . init( ) ,
96
- logger: Logger ? = nil ,
97
93
outputHandle: FileHandle ? = nil ,
98
94
errorHandle: FileHandle ? = nil ,
99
95
environment: [ String : String ] ? = nil ,
@@ -104,7 +100,6 @@ import Logging
104
100
arguments: command. arguments,
105
101
at: path,
106
102
process: process,
107
- logger: logger,
108
103
outputHandle: outputHandle,
109
104
errorHandle: errorHandle,
110
105
environment: environment,
@@ -440,7 +435,6 @@ extension ShellOutCommand {
440
435
private extension Process {
441
436
@discardableResult func launchBash(
442
437
with command: String ,
443
- logger: Logger ? = nil ,
444
438
outputHandle: FileHandle ? = nil ,
445
439
errorHandle: FileHandle ? = nil ,
446
440
environment: [ String : String ] ? = nil ,
@@ -498,9 +492,7 @@ private extension Process {
498
492
try self . run ( )
499
493
self . waitUntilExit ( )
500
494
501
- if outputGroup. wait ( timeout: . now( ) + eofTimeout) == . timedOut {
502
- logger? . warning ( " ShellOut.launchBash: Timed out waiting for EOF! (command: \( command) ) " )
503
- }
495
+ _ = outputGroup. wait ( timeout: . now( ) + eofTimeout)
504
496
505
497
// We know as of this point that either all blocks have been submitted to the
506
498
// queue already, or we've reached our wait timeout.
0 commit comments