Skip to content

Commit

Permalink
remove logger from ShellClient
Browse files Browse the repository at this point in the history
  • Loading branch information
fslevoaca-ionos committed Apr 11, 2022
1 parent 1c49f6b commit 6101643
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

### 1.67-SNAPSHOT
Remove logging from ShellClient


### 1.66
Expand Down
8 changes: 0 additions & 8 deletions src/main/java/io/jtest/utils/clients/shell/ShellClient.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
package io.jtest.utils.clients.shell;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;

public class ShellClient {

private static final Logger LOG = LogManager.getLogger();

private final ProcessBuilder processBuilder;

public ShellClient() {
Expand Down Expand Up @@ -44,12 +38,10 @@ public String execute(String... command) {
} catch (IOException | InterruptedException e) {
throw new RuntimeException(e);
}
LOG.debug("Process output: {}", outputBuffer.toString());
return outputBuffer.toString();
}

public Process startProcess(String... command) {
LOG.info("Execute command \"{}\"", Arrays.toString(command));
this.processBuilder.command(command);
try {
return processBuilder.start();
Expand Down

0 comments on commit 6101643

Please sign in to comment.