From 9dcbcc81e1e2fcbd874f0343750662518a5e713a Mon Sep 17 00:00:00 2001 From: sunzhengfang Date: Wed, 21 Mar 2018 18:20:22 +0800 Subject: [PATCH] grpc alarm reload fix --- src/main/java/com/actiontech/dble/log/AlarmAppender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/actiontech/dble/log/AlarmAppender.java b/src/main/java/com/actiontech/dble/log/AlarmAppender.java index bf59b9bf63..7b0253482e 100644 --- a/src/main/java/com/actiontech/dble/log/AlarmAppender.java +++ b/src/main/java/com/actiontech/dble/log/AlarmAppender.java @@ -128,7 +128,7 @@ public static void refreshConfig() { grpcUrlOld = grpcUrl; grpcLevelOld = grpcLevel; - grpcLevel = Integer.parseInt(config.getLevel()); + grpcLevel = "error".equalsIgnoreCase(config.getLevel()) ? 200 : 300; serverId = config.getServerId(); port = Integer.parseInt(config.getPort()); grpcUrl = config.getUrl();