diff --git a/vars/logger.groovy b/vars/logger.groovy index a0fd6a3..fc1accb 100644 --- a/vars/logger.groovy +++ b/vars/logger.groovy @@ -61,7 +61,8 @@ private void logger(level, message) { def LOG_LEVEL = 'INFO' // Global log colorization enabled flag - def colorization = System.getenv('LOGGER_COLORIZED_ENABLED') + def env = new java.lang.ProcessEnvironment() + def colorization = env.getenv('LOGGER_COLORIZED_ENABLED') if (LOG_LEVELS.indexOf(level) <= LOG_LEVELS.indexOf(LOG_LEVEL)) { def color = COLORS[level]