xtf-cz / xtf

MIT License
12 stars 55 forks source link

executeWithBash: add logs #556

Open tommaso-borgato opened 9 months ago

tommaso-borgato commented 9 months ago

We would like these kind of logs to be added to the method itself:

        Pod clientPod = openshift.getPod(APP_CLIENT + "-0");
        PodShellOutput podShellOutput = openshift.podShell(clientPod)
                .executeWithBash("$JBOSS_HOME/bin/jboss-cli.sh -c --command=\"/subsystem=transactions/log-store=log-store:probe()\"");
        log.debug("POD {} COMMAND {}", APP_CLIENT + "-0", "$JBOSS_HOME/bin/jboss-cli.sh -c --command=\"/subsystem=transactions/log-store=log-store:probe()\"");
        log.debug("STDOUT: {}", podShellOutput.getOutput());
        log.debug("STDERR: {}", podShellOutput.getError());