Fixed bad log init with no configuration file.

This commit is contained in:
Christian P. MOMON 2024-09-23 03:43:04 +02:00
parent b092073311
commit 000d779d01

View file

@ -72,8 +72,8 @@ public final class StatoolInfosLauncher
else else
{ {
// //
Level logEnvLevel = Level.getLevel(StringUtils.defaultString(System.getenv().get("LOG4J_LEVEL"), "")); Level logEnvLevel = Level.getLevel(StringUtils.defaultString(System.getenv().get("LOG4J_LEVEL"), " "));
Level logPropertyLevel = Level.getLevel(StringUtils.defaultString(System.getProperty("log4j2.level", ""))); Level logPropertyLevel = Level.getLevel(StringUtils.defaultString(System.getProperty("log4j2.level", " ")));
Level level; Level level;
if (logPropertyLevel != null) if (logPropertyLevel != null)