Skip to content

Commit

Permalink
Log if fail to start qos server. apache#2046
Browse files Browse the repository at this point in the history
  • Loading branch information
ralf0131 committed Jul 27, 2018
1 parent b929fc7 commit b2e0654
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

import org.apache.dubbo.common.Constants;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.logger.Logger;
import org.apache.dubbo.common.logger.LoggerFactory;
import org.apache.dubbo.qos.common.QosConstants;
import org.apache.dubbo.qos.server.Server;
import org.apache.dubbo.rpc.Exporter;
Expand All @@ -32,6 +34,9 @@
import static org.apache.dubbo.common.Constants.QOS_PORT;

public class QosProtocolWrapper implements Protocol {

private final Logger logger = LoggerFactory.getLogger(QosProtocolWrapper.class);

private static AtomicBoolean hasStarted = new AtomicBoolean(false);

private Protocol protocol;
Expand Down Expand Up @@ -90,7 +95,7 @@ private void startQosServer(URL url) {
server.start();

} catch (Throwable throwable) {
//throw new RpcException("fail to start qos server", throwable);
logger.warn("Fail to start qos server: ", throwable);
}
}

Expand Down

0 comments on commit b2e0654

Please sign in to comment.