weichao666 commented on a change in 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#discussion_r193713051
##########
File path:
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());
Review comment:
done
----------------------------------------------------------------
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