You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built and maintain a logging starter for my company, and am in the process of updating it for Spring Boot 3.0. I've found that Janino fails to leverage Spring properties while evaluating conditions. Here is my demo project that reproduces the issue: https://github.com/matthenry87/logback-janino-bug
While debugging, I can see the property in the logging context's property map:
(breakpoint at line 191 of LogbackLoggingSystem.java)
But you can see in the statuses variable that the condition is evaluating to false when it should be true:
The logging configuration itself can use the property for element values just fine, it just seems that Janino isn't properly receiving them.
The text was updated successfully, but these errors were encountered:
philwebb
changed the title
Spring Boot 3.0 + Logback + Janino: Janino Fails to Leverage Spring Properties in Conditions
Logback <if> blocks cannot read spring properties
Nov 7, 2022
I built and maintain a logging starter for my company, and am in the process of updating it for Spring Boot 3.0. I've found that Janino fails to leverage Spring properties while evaluating conditions. Here is my demo project that reproduces the issue: https://github.com/matthenry87/logback-janino-bug
While debugging, I can see the property in the logging context's property map:
(breakpoint at line 191 of LogbackLoggingSystem.java)
But you can see in the statuses variable that the condition is evaluating to false when it should be true:
The logging configuration itself can use the property for element values just fine, it just seems that Janino isn't properly receiving them.
The text was updated successfully, but these errors were encountered: