langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/client/SjavacClient.java
changeset 36714 329f0f6baff5
parent 36708 c524ead121da
child 37643 626e07816dce
equal deleted inserted replaced
36713:592302b6161b 36714:329f0f6baff5
   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