Skip to content

Commit

Permalink
security(logging) can be overriden by env var
Browse files Browse the repository at this point in the history
ref: #27910
  • Loading branch information
wezell committed Mar 20, 2024
1 parent 740feba commit be8d64f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dotCMS/src/main/java/com/dotmarketing/util/RuntimeUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public class RuntimeUtils {



private static final Lazy<Boolean> ENABLE_LOGGING = Lazy.of(() -> Boolean.parseBoolean(System.getProperty("dotcms.runtimeutils.enablelogging", "false")));
private static final Lazy<Boolean> ENABLE_LOGGING = Lazy.of(() -> {
return Try.of(()->Boolean.parseBoolean(System.getenv("DOT_RUNTIME_ENABLE_LOGGING"))).getOrElse(false);
});


private static void logInfo(String message) {
Expand Down

0 comments on commit be8d64f

Please # to comment.