diff --git a/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/GroovycOSProcessHandler.java b/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/GroovycOSProcessHandler.java index 47b7fe58c4d9..bb43051223e1 100644 --- a/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/GroovycOSProcessHandler.java +++ b/plugins/groovy/jps-plugin/src/org/jetbrains/jps/incremental/groovy/GroovycOSProcessHandler.java @@ -58,7 +58,7 @@ public class GroovycOSProcessHandler extends BaseOSProcessHandler { super.notifyTextAvailable(text, outputType); if (LOG.isDebugEnabled()) { - LOG.debug("Received from groovyc: " + text); + LOG.debug("Received from groovyc " + outputType + ": " + text); } if (outputType == ProcessOutputTypes.SYSTEM) { @@ -197,14 +197,17 @@ public class GroovycOSProcessHandler extends BaseOSProcessHandler { public boolean shouldRetry() { if (getProcess().exitValue() != 0) { + LOG.debug("Non-zero exit code"); return true; } for (CompilerMessage message : compilerMessages) { if (message.getKind() == BuildMessage.Kind.ERROR) { + LOG.debug("Error message: " + message); return true; } } if (getStdErr().length() > 0) { + LOG.debug("Non-empty stderr: '" + getStdErr() + "'"); return true; } return false;