Skip to content

Commit e9d0328

Browse files
committed
Close issue ESAPI#276.
1 parent f4ce180 commit e9d0328

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/owasp/esapi/reference/DefaultExecutor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ public ExecuteResult executeSystemCommand(File executable, List params, File wor
143143
pb.redirectErrorStream(redirectErrorStream);
144144

145145
if ( logParams ) {
146-
logger.warning(Logger.SECURITY_SUCCESS, "Initiating executable: " + executable + " " + params + " in " + workdir);
146+
logger.debug(Logger.SECURITY_SUCCESS, "Initiating executable: " + executable + " " + params + " in " + workdir);
147147
} else {
148-
logger.warning(Logger.SECURITY_SUCCESS, "Initiating executable: " + executable + " [sensitive parameters obscured] in " + workdir);
148+
logger.debug(Logger.SECURITY_SUCCESS, "Initiating executable: " + executable + " [sensitive parameters obscured] in " + workdir);
149149
}
150150

151151
final StringBuilder outputBuffer = new StringBuilder();
@@ -187,7 +187,7 @@ public ExecuteResult executeSystemCommand(File executable, List params, File wor
187187
logger.warning( Logger.EVENT_FAILURE, "System command exited with non-zero status: " + exitValue );
188188
}
189189

190-
logger.warning(Logger.SECURITY_SUCCESS, "System command complete");
190+
logger.debug(Logger.SECURITY_SUCCESS, "System command complete");
191191
return new ExecuteResult(exitValue, output, errors);
192192
} catch (IOException e) {
193193
throw new ExecutorException("Execution failure", "Exception thrown during execution of system command: " + e.getMessage(), e);

0 commit comments

Comments
 (0)