From d37345bdb2d60ee79c163f3ea3ae436c3b5be580 Mon Sep 17 00:00:00 2001 From: "leon.li" Date: Thu, 1 Sep 2016 12:10:19 +0800 Subject: [PATCH] add logs to console screen --- .../com/dianping/phoenix/lb/deploy/agent/AgentReader.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/camel-admin/src/main/java/com/dianping/phoenix/lb/deploy/agent/AgentReader.java b/camel-admin/src/main/java/com/dianping/phoenix/lb/deploy/agent/AgentReader.java index 0613e49..3877815 100644 --- a/camel-admin/src/main/java/com/dianping/phoenix/lb/deploy/agent/AgentReader.java +++ b/camel-admin/src/main/java/com/dianping/phoenix/lb/deploy/agent/AgentReader.java @@ -103,10 +103,9 @@ public class AgentReader { result.setCurrentStep(line.substring(pos).trim()); } - } else { - if (line.length() > 0) { - lines.add(line); - } + } + if (line.length() > 0) { + lines.add(line); } } }