Skip to content

Commit

Permalink
fix(ct): use different Logger to record log
Browse files Browse the repository at this point in the history
  • Loading branch information
HJ-Young committed Oct 6, 2024
1 parent 2f769d7 commit dd0bbd6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public class EnvUtil {

private static final Logger LOG = HGTestLogger.LOG;
private static final Logger LOG = HGTestLogger.UtilLOG;
private static final Set<Integer> ports = new HashSet<>();

public static int getAvailablePort() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
@Slf4j
public class HGTestLogger {

public static Logger LOG = LoggerFactory.getLogger(HGTestLogger.class);
public static Logger UtilLOG = LoggerFactory.getLogger(HGTestLogger.class);
public static Logger EnvLOG = LoggerFactory.getLogger(HGTestLogger.class);
public static Logger ConfigLOG = LoggerFactory.getLogger(HGTestLogger.class);
public static Logger NodeLOG = LoggerFactory.getLogger(HGTestLogger.class);
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

public abstract class AbstractConfig {

protected static final Logger LOG = HGTestLogger.LOG;
protected static final Logger LOG = HGTestLogger.ConfigLOG;
protected String config;
protected Map<String, String> properties = new HashMap<>();
protected String fileName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public class ClusterConfig {

protected static final Logger LOG = HGTestLogger.LOG;
protected static final Logger LOG = HGTestLogger.ConfigLOG;
protected List<PDConfig> pdConfigs;
protected List<StoreConfig> storeConfigs;
protected List<ServerConfig> serverConfigs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Slf4j
public abstract class AbstractEnv implements BaseEnv {

private static final Logger LOG = HGTestLogger.LOG;
private static final Logger LOG = HGTestLogger.EnvLOG;
protected ClusterConfig clusterConfig;
protected List<PDNodeWrapper> pdNodeWrappers;
protected List<ServerNodeWrapper> serverNodeWrappers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class EnvFactory {

private static final Logger LOG = HGTestLogger.LOG;
private static final Logger LOG = HGTestLogger.EnvLOG;
private static BaseEnv env;

public static BaseEnv getEnv() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

public abstract class AbstractNodeWrapper implements BaseNodeWrapper {

protected final Logger LOG = HGTestLogger.LOG;
protected final Logger LOG = HGTestLogger.NodeLOG;
protected int clusterIndex;
@Getter
protected String workPath;
Expand Down

0 comments on commit dd0bbd6

Please sign in to comment.