mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-04-01 09:50:16 +02:00
improve logging
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user