From f4338ca7b2fc1ba2db0533e82f539c8c1f72dc43 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 4 Jan 2022 14:43:50 +0100 Subject: [PATCH] Fixed previous commit. --- src/fr/devinsy/statoolinfos/StatoolInfosLauncher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/StatoolInfosLauncher.java b/src/fr/devinsy/statoolinfos/StatoolInfosLauncher.java index cc9fb29..90f7ef3 100644 --- a/src/fr/devinsy/statoolinfos/StatoolInfosLauncher.java +++ b/src/fr/devinsy/statoolinfos/StatoolInfosLauncher.java @@ -72,8 +72,8 @@ public final class StatoolInfosLauncher else { // - Level logEnvLevel = Level.getLevel(System.getenv().get("LOG4J_LEVEL")); - Level logPropertyLevel = Level.getLevel(System.getProperty("log4j2.level")); + Level logEnvLevel = Level.getLevel(StringUtils.defaultString(System.getenv().get("LOG4J_LEVEL"), "")); + Level logPropertyLevel = Level.getLevel(StringUtils.defaultString(System.getProperty("log4j2.level", ""))); Level level; if (logPropertyLevel != null)