Skip to content

Commit

Permalink
Fix LogLevel.ALWAYS logging
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Mar 25, 2024
1 parent 84290d0 commit 3bd0f4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/laytonsmith/core/Static.java
Original file line number Diff line number Diff line change
Expand Up @@ -1080,11 +1080,16 @@ public static synchronized void LogDebug(File root, String message, LogLevel lev
*/
public static synchronized void LogDebug(File root, String message, LogLevel level, boolean printScreen) throws IOException {
//If debug mode is on in the prefs, we want to log this to the screen too
if(Prefs.DebugMode() || Prefs.ShowWarnings() || level == LogLevel.ERROR) {
if(Prefs.DebugMode() || Prefs.ShowWarnings() || level == LogLevel.ERROR || level == LogLevel.ALWAYS) {
String color = "";
Level lev = Level.INFO;
boolean show = false;
switch(level) {
case ALWAYS:
color = TermColors.WHITE;
lev = Level.INFO;
show = true;
break;
case ERROR:
color = TermColors.RED;
lev = Level.SEVERE;
Expand Down

0 comments on commit 3bd0f4f

Please sign in to comment.