File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
operator/src/main/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 10
10
import io .kubernetes .client .models .V1PodList ;
11
11
import io .kubernetes .client .models .V1Service ;
12
12
import io .kubernetes .client .models .V1ServiceList ;
13
+ import java .io .FileOutputStream ;
13
14
import java .io .IOException ;
14
15
import java .io .InputStream ;
16
+ import java .io .OutputStream ;
17
+ import java .io .PrintStream ;
15
18
import java .util .ArrayList ;
16
19
import java .util .Collection ;
17
20
import java .util .HashSet ;
@@ -90,6 +93,11 @@ public Thread newThread(Runnable r) {
90
93
91
94
static {
92
95
try {
96
+ // suppress System.err since we catch all necessary output with Logger
97
+ OutputStream output = new FileOutputStream ("/dev/null" );
98
+ PrintStream nullOut = new PrintStream (output );
99
+ System .setErr (nullOut );
100
+
93
101
ClientPool .initialize (threadFactory );
94
102
95
103
TuningParameters .initializeInstance (wrappedExecutorService , "/operator/config" );
You can’t perform that action at this time.
0 commit comments