From 38b61a367cc646c208b2a8f2ba7e3a40da8f6ada Mon Sep 17 00:00:00 2001 From: Gorkem Ercan Date: Mon, 18 Jul 2016 11:43:28 -0400 Subject: [PATCH] Allow default value for log Get a non-null default value for log level of it is not available on environment variables. --- .../src/org/jboss/tools/vscode/java/handlers/LogHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/org.jboss.tools.vscode.java/src/org/jboss/tools/vscode/java/handlers/LogHandler.java b/server/org.jboss.tools.vscode.java/src/org/jboss/tools/vscode/java/handlers/LogHandler.java index 45222f9ada..e558e55016 100644 --- a/server/org.jboss.tools.vscode.java/src/org/jboss/tools/vscode/java/handlers/LogHandler.java +++ b/server/org.jboss.tools.vscode.java/src/org/jboss/tools/vscode/java/handlers/LogHandler.java @@ -34,7 +34,7 @@ public class LogHandler { public void install(JavaClientConnection rcpConnection) { this.dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM); - this.logLevelMask = getLogLevelMask(System.getProperty("log.level")); + this.logLevelMask = getLogLevelMask(System.getProperty("log.level", ""));//Empty by default this.calendar = Calendar.getInstance(); this.connection = rcpConnection;