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
As soon as system environment exist the debug variable, the spring boot will set springBootLogging to debug
It is so freedom
in my case, oneday, someone executed some program like shell, it had been set environment variable debug = 1 or trace careless. when restart, it set the springBootLogging to debug.
We can't restrict others from doing so.
I think set springBootLogging to debug so freedom , it should be added some prefix
look at LoggingApplicationListener.java
privatevoidinitializeEarlyLoggingLevel(ConfigurableEnvironmentenvironment) {
if (this.parseArgs && this.springBootLogging == null) {
if (isSet(environment, "debug")) {
this.springBootLogging = LogLevel.DEBUG;
}
if (isSet(environment, "trace")) {
this.springBootLogging = LogLevel.TRACE;
}
}
}
The text was updated successfully, but these errors were encountered:
snicoll
changed the title
[bug] SpringApplicationRunner.java set springBootLogging to debug so freedom
debug mode should not be triggered only by the presence of a "debug" env property
Apr 12, 2019
philwebb
changed the title
debug mode should not be triggered only by the presence of a "debug" env property
Debug mode should not be triggered only by the presence of a "debug" env property
Apr 12, 2019
This is one part of a broader problem that's discussed in #3450 and I don't think we can change the existing behavior without breaking existing apps. If would be nice if we could offer a quick way to opt-out of picking up those flags from the system environment.
Uh oh!
There was an error while loading. Please reload this page.
As soon as system environment exist the debug variable, the spring boot will set
springBootLogging
todebug
It is so freedom
in my case, oneday, someone executed some program like
shell
, it had been set environment variabledebug = 1
ortrace
careless. when restart, it set the springBootLogging todebug
.We can't restrict others from doing so.
I think set springBootLogging to
debug
so freedom , it should be added some prefixlook at
LoggingApplicationListener.java
The text was updated successfully, but these errors were encountered: