this.diagnostics = diagnostics;
}
protected void doBuild(final DaemonCommandExecution execution, Build build) {
final LogLevel buildLogLevel = build.getParameters().getLogLevel();
OutputEventListener listener = new OutputEventListener() {
public void onOutput(OutputEvent event) {
try {
if (event.getLogLevel() != null && event.getLogLevel().compareTo(buildLogLevel) >= 0) {
execution.getConnection().logEvent(event);
}