Fixed previous commit.

This commit is contained in:
Christian P. MOMON 2022-01-04 14:43:50 +01:00
parent 407f22692b
commit f4338ca7b2

View file

@ -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)