Skip to content

Commit

Permalink
fix: xiaoya proxy debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Aug 15, 2024
1 parent e6e98c6 commit 9548e79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ddsrem.xiaoya_proxy;

public class Logger {
static boolean dbg = true;
static boolean dbg = "true".equals(System.getenv("DEBUG"));

public static void log(String message, boolean force) {
if(!dbg && !force){
Expand All @@ -13,4 +13,4 @@ public static void log(String message, boolean force) {
public static void log(String message) {
Logger.log(message, false);
}
}
}

0 comments on commit 9548e79

Please sign in to comment.