mirror of
				https://github.com/LamGC/ContentGrabbingJi.git
				synced 2025-11-04 02:26:57 +00:00 
			
		
		
		
	[Fix] log4j2.xml 修复日志配置错误的问题;
[Change] BotGlobal, Main 调整日志输出内容和级别;
This commit is contained in:
		@ -52,7 +52,7 @@ public class Main {
 | 
			
		||||
    private static HttpHost proxy;
 | 
			
		||||
 | 
			
		||||
    public static void main(String[] args) throws IOException, ClassNotFoundException {
 | 
			
		||||
        log.trace("ContentGrabbingJi 正在启动...");
 | 
			
		||||
        log.info("ContentGrabbingJi 正在启动...");
 | 
			
		||||
        log.debug("Args: {}, LogsPath: {}", Arrays.toString(args), System.getProperty("cgj.logsPath"));
 | 
			
		||||
        log.debug("运行目录: {}", System.getProperty("user.dir"));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -61,7 +61,7 @@ public final class BotGlobal {
 | 
			
		||||
        try (Jedis jedis = this.redisServer.getResource()) {
 | 
			
		||||
            log.warn("Redis连接状态(Ping): {}", jedis.ping().equalsIgnoreCase("pong"));
 | 
			
		||||
        } catch(JedisConnectionException e) {
 | 
			
		||||
            log.warn("Redis连接失败, 将会影响到后续功能运行.", e);
 | 
			
		||||
            log.warn("Redis连接失败, 将会影响到后续功能运行.({})", e.getCause().getMessage());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        String dataStoreDirPath = System.getProperty("cgj.botDataDir");
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user