weichao666 closed pull request #755: [SCB-649] when port can't been 
listened,log warn and show more detail message
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/755
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/VertxRestTransport.java
 
b/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/VertxRestTransport.java
index 008792c64..78d7f19c4 100644
--- 
a/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/VertxRestTransport.java
+++ 
b/transports/transport-rest/transport-rest-vertx/src/main/java/org/apache/servicecomb/transport/rest/vertx/VertxRestTransport.java
@@ -59,7 +59,7 @@ public boolean canInit() {
     }
 
     if (!NetUtils.canTcpListen(ep.getSocketAddress().getAddress(), 
ep.getPort())) {
-      log.info("can not listen {}, skip {}.", ep.getSocketAddress(), 
this.getClass().getName());
+      log.warn("can not listen {}, port may have been occupied, this may cause 
client report error when being accessed. skip {}.", ep.getSocketAddress(), 
this.getClass().getName());
       return false;
     }
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to