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:
parent
e449ba161c
commit
5be151ebda
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user