diff --git a/src/main/java/net/lamgc/cgj/Main.java b/src/main/java/net/lamgc/cgj/Main.java index 39651ac..e7c86ec 100644 --- a/src/main/java/net/lamgc/cgj/Main.java +++ b/src/main/java/net/lamgc/cgj/Main.java @@ -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")); diff --git a/src/main/java/net/lamgc/cgj/bot/boot/BotGlobal.java b/src/main/java/net/lamgc/cgj/bot/boot/BotGlobal.java index 890e57e..d9d9a31 100644 --- a/src/main/java/net/lamgc/cgj/bot/boot/BotGlobal.java +++ b/src/main/java/net/lamgc/cgj/bot/boot/BotGlobal.java @@ -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"); diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index dd5828b..a0c5954 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -19,7 +19,7 @@ - + @@ -46,19 +46,9 @@ - - - - - - - - - - - - + +