Skip to content

Commit

Permalink
Update AbstractClient.java
Browse files Browse the repository at this point in the history
当配置check=false时,如果connect服务端失败,日志级别调整为warn,不需要为error
  • Loading branch information
beyondyuefei committed Mar 16, 2014
1 parent 041a943 commit 50c7e58
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public AbstractClient(URL url, ChannelHandler handler) throws RemotingException
close();
throw t;
} else {
logger.error("Failed to start " + getClass().getSimpleName() + " " + NetUtils.getLocalAddress()
logger.warn("Failed to start " + getClass().getSimpleName() + " " + NetUtils.getLocalAddress()
+ " connect to the server " + getRemoteAddress() + " (check == false, ignore and retry later!), cause: " + t.getMessage(), t);
}
} catch (Throwable t){
Expand Down Expand Up @@ -399,4 +399,4 @@ public String toString() {
*/
protected abstract Channel getChannel();

}
}

0 comments on commit 50c7e58

Please sign in to comment.