8152465: Sjavac should not prefix server generated log messages with [server]

Dropped the [server] prefix unless debug output is enabled.

Reviewed-by: jjg
This commit is contained in:
Andreas Lundblad 2016-03-23 13:44:53 +01:00
parent e449ba161c
commit 5be151ebda

View File

@ -139,7 +139,11 @@ public class SjavacClient implements Sjavac {
String content = typeAndContent[1];
try {
Log.log(Log.Level.valueOf(type), "[server] " + content);
if (Log.isDebugging()) {
// Distinguish server generated output if debugging.
content = "[sjavac-server] " + content;
}
Log.log(Log.Level.valueOf(type), content);
continue;
} catch (IllegalArgumentException e) {
// Parsing of 'type' as log level failed.