@@ -278,8 +278,6 @@ public static Map<String, String> verifyLoggingExporterReady(String opNamespace,
278
278
execLoggingExpStatusCheck (opNamespace , esNamespace , labelSelector , "*" + index + "*" );
279
279
assertNotNull (statusLine );
280
280
281
- logger .info ("=== statusLine return by execLoggingExpStatusCheck: {0}!" , statusLine );
282
-
283
281
String [] parseString = statusLine .split ("\\ s+" );
284
282
assertTrue (parseString .length >= 3 , index + " does not exist!" );
285
283
String healthStatus = parseString [0 ];
@@ -471,33 +469,28 @@ private static V1Service createKibanaServiceCr(LoggingExporterParams params) {
471
469
private static String execLoggingExpStatusCheck (String opNamespace , String esNamespace ,
472
470
String labelSelector , String indexRegex ) {
473
471
String elasticSearchHost = "elasticsearch." + esNamespace + ".svc.cluster.local" ;
474
- logger .info ("=== elasticSearchHost in execLoggingExpStatusCheck: {0}" , elasticSearchHost );
475
472
StringBuffer k8sExecCmdPrefixBuff = new StringBuffer ("curl http://" );
476
473
String cmd = k8sExecCmdPrefixBuff
477
474
.append (elasticSearchHost )
478
475
.append (":" )
479
476
.append (ELASTICSEARCH_HTTP_PORT )
480
477
.append ("/_cat/indices/" )
481
478
.append (indexRegex ).toString ();
482
- logger .info ("=== Command to get logging exporter status line {0}" , cmd );
479
+ logger .info ("Command to get logging exporter status line {0}" , cmd );
483
480
484
481
// get Operator pod name
485
482
String operatorPodName = assertDoesNotThrow (() -> getOperatorPodName (OPERATOR_RELEASE_NAME , opNamespace ));
486
483
assertTrue (operatorPodName != null && !operatorPodName .isEmpty (), "Failed to get Operator pad name" );
487
- logger .info ("=== operatorPodName in execLoggingExpStatusCheck: {0}" , operatorPodName );
488
484
489
485
int i = 0 ;
490
486
ExecResult statusLine = null ;
491
487
while (i < maxIterationsPod ) {
492
- logger .info ("=== cmd to exec execLoggingExpStatusCheck: opNamespace: {0}, operatorPodName: {1}, cmd {2} {3}" ,
488
+ logger .info ("Command to exec execLoggingExpStatusCheck: opNamespace: {0}, operatorPodName: {1}, cmd {2} {3}" ,
493
489
opNamespace , operatorPodName , "/bin/sh -c " , cmd );
494
490
statusLine = assertDoesNotThrow (() -> execCommand (opNamespace , operatorPodName , null , true ,
495
491
"/bin/sh" , "-c" , cmd ));
496
492
assertNotNull (statusLine , "curl command returns null" );
497
493
498
- logger .info ("Status.stdout(): ###{0}### for index ***{1}***" , statusLine .stdout (), indexRegex );
499
- logger .info ("Status.stderr(): ###{0}### for index ***{1}***" , statusLine .stderr (), indexRegex );
500
- logger .info ("Status.toString(): ###{0}### for index ***{1}***" , statusLine .toString (), indexRegex );
501
494
if (null != statusLine .stdout () && !statusLine .stdout ().isEmpty ()) {
502
495
break ;
503
496
}
0 commit comments