From d244f07041f77ef450a0ea431288e24a3defec4e Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 18 Dec 2013 17:20:18 +0100 Subject: [PATCH] more groovyc logging --- .../jps/incremental/groovy/GroovycOSProcessHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;