langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/client/SjavacClient.java
equal
deleted
inserted
replaced
137 String[] typeAndContent = line.split(":", 2); |
137 String[] typeAndContent = line.split(":", 2); |
138 String type = typeAndContent[0]; |
138 String type = typeAndContent[0]; |
139 String content = typeAndContent[1]; |
139 String content = typeAndContent[1]; |
140 |
140 |
141 try { |
141 try { |
142 Log.log(Log.Level.valueOf(type), "[server] " + content); |
142 if (Log.isDebugging()) { |
|
143 // Distinguish server generated output if debugging. |
|
144 content = "[sjavac-server] " + content; |
|
145 } |
|
146 Log.log(Log.Level.valueOf(type), content); |
143 continue; |
147 continue; |
144 } catch (IllegalArgumentException e) { |
148 } catch (IllegalArgumentException e) { |
145 // Parsing of 'type' as log level failed. |
149 // Parsing of 'type' as log level failed. |
146 } |
150 } |
147 |
151 |