Skip to content

Commit

Permalink
only %n for string.format
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Sep 22, 2023
1 parent eb57d46 commit 4aa8ba9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public <T> T responseAs(final Class<T> responseClass, final Duration timeout) {
final String standardError = StreamUtils.streamToString(suppressExceptions(this::standardError));

LOGGER.debug(
"ResponseAs exiting with exitCode: {}%n\tResponseClass: {}%n\tstandardOutput: {}%n\tstandardError: {}",
"ResponseAs exiting with exitCode: {}TODO\n\tResponseClass: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), responseClass.getName(), standardOutput, standardError);

try {
Expand Down Expand Up @@ -288,7 +288,7 @@ public <T> List<T> responseAsList(final Class<T> responseClass, final Duration t
final String standardError = StreamUtils.streamToString(suppressExceptions(this::standardError));

LOGGER.debug(
"ResponseAsList exiting with exitCode: {}%n\tResponseClass: {}%n\tstandardOutput: {}%n\tstandardError: {}",
"ResponseAsList exiting with exitCode: {}\n\tResponseClass: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), responseClass.getName(), standardOutput, standardError);

try {
Expand Down Expand Up @@ -339,12 +339,12 @@ public void call(final Duration timeout) {
final String standardError = StreamUtils.streamToString(suppressExceptions(this::standardError));

LOGGER.debug(
"Call exiting with exitCode: {}%n\tstandardOutput: {}%n\tstandardError: {}",
"Call exiting with exitCode: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), standardOutput, standardError);

if (exitCode() != 0) {
LOGGER.warn(
"Call failed with exitCode: {}%n\tstandardOutput: {}%n\tstandardError: {}",
"Call failed with exitCode: {}\n\tstandardOutput: {}\n\tstandardError: {}",
exitCode(), standardOutput, standardError);

throw new HelmExecutionException(exitCode(), standardError, standardOutput);
Expand Down

0 comments on commit 4aa8ba9

Please sign in to comment.