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 1010import io .kubernetes .client .models .V1PodList ;
1111import io .kubernetes .client .models .V1Service ;
1212import io .kubernetes .client .models .V1ServiceList ;
13+ import java .io .FileOutputStream ;
1314import java .io .IOException ;
1415import java .io .InputStream ;
16+ import java .io .OutputStream ;
17+ import java .io .PrintStream ;
1518import java .util .ArrayList ;
1619import java .util .Collection ;
1720import java .util .HashSet ;
@@ -90,6 +93,11 @@ public Thread newThread(Runnable r) {
9093
9194 static {
9295 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+
93101 ClientPool .initialize (threadFactory );
94102
95103 TuningParameters .initializeInstance (wrappedExecutorService , "/operator/config" );
You can’t perform that action at this time.
0 commit comments