improve logging

This commit is contained in:
Sebastian Sdorra
2011-05-05 19:36:08 +02:00
parent 6fd04b19d3
commit 514c1e032b
2 changed files with 27 additions and 2 deletions

View File

@@ -176,6 +176,15 @@ public class SimpleCommand implements Command
}
int returnCode = process.waitFor();
if ( logger.isDebugEnabled() )
{
logger.debug( "command returned with exitcode {}", returnCode );
if ( logger.isTraceEnabled() )
{
logger.trace("command content: {}{}", s, content.toString() );
}
}
result = new SimpleCommandResult(content.toString(), returnCode);
}