From fcea91d1d56f86521ba2f659d0f08e0957e792fe Mon Sep 17 00:00:00 2001 From: xen Date: Tue, 12 Feb 2019 11:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/ma/luan/yiyan/MainVerticle.java | 2 +- src/main/java/ma/luan/yiyan/service/LogService.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index d00d9e5..2704e74 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ ma.luan yiyan - 1.4 + 1.4.1 1.8 diff --git a/src/main/java/ma/luan/yiyan/MainVerticle.java b/src/main/java/ma/luan/yiyan/MainVerticle.java index 96c0326..5092bb0 100644 --- a/src/main/java/ma/luan/yiyan/MainVerticle.java +++ b/src/main/java/ma/luan/yiyan/MainVerticle.java @@ -22,7 +22,7 @@ public class MainVerticle extends AbstractVerticle { @Override public void start(Future startFuture) { // 配置 RuntimeError 错误记录 - vertx.exceptionHandler(error -> log.error(error)); + vertx.exceptionHandler(error -> log.error("未捕获的异常:", error)); // 顺序部署 Verticle Future.succeededFuture() diff --git a/src/main/java/ma/luan/yiyan/service/LogService.java b/src/main/java/ma/luan/yiyan/service/LogService.java index 717a915..5a7e9c5 100644 --- a/src/main/java/ma/luan/yiyan/service/LogService.java +++ b/src/main/java/ma/luan/yiyan/service/LogService.java @@ -60,7 +60,7 @@ private void getHistoryFromRedis(Message message) { result.put("最近七天点击量", history.result()); message.reply(result); } else { - log.error(v.cause()); + log.error("日志获取异常", v.cause()); message.fail(500, v.cause().getMessage()); } });