mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
more compact logging
This commit is contained in:
@@ -283,7 +283,7 @@ public class CompileServerManager implements ApplicationComponent{
|
||||
// re-translate server's output to idea.log
|
||||
final String text = event.getText();
|
||||
if (!StringUtil.isEmpty(text)) {
|
||||
LOG.info("COMPILE_SERVER [" +outputType.toString() +"]: "+ text);
|
||||
LOG.info("COMPILE_SERVER [" +outputType.toString() +"]: "+ text.trim());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -95,8 +95,13 @@ public class JavacServerBootstrap {
|
||||
processHandler.addProcessListener(new ProcessAdapter() {
|
||||
public void onTextAvailable(ProcessEvent event, Key outputType) {
|
||||
final String text = event.getText();
|
||||
if (text != null && text.length() > 0) {
|
||||
System.out.print("JAVAC_SERVER [" + outputType.toString() + "]: " + text);
|
||||
if (!StringUtil.isEmpty(text)) {
|
||||
if (outputType == ProcessOutputTypes.STDOUT) {
|
||||
System.out.print("JAVAC_SERVER: " + text);
|
||||
}
|
||||
else if (outputType == ProcessOutputTypes.STDERR){
|
||||
System.err.print("JAVAC_SERVER: " + text);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user