From 000d779d01af9c25530228c7538e473c35763452 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 23 Sep 2024 03:43:04 +0200 Subject: [PATCH] Fixed bad log init with no configuration file. --- 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 90f7ef3..70a7c50 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(StringUtils.defaultString(System.getenv().get("LOG4J_LEVEL"), "")); - Level logPropertyLevel = Level.getLevel(StringUtils.defaultString(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)