Skip to content

Commit e80541a

Browse files
coalchanzoemak
authored andcommitted
fixed issue alibaba#4813, support metric.port = -1 (alibaba#4891)
1 parent 0178118 commit e80541a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/com/alibaba/otter/canal/server/embedded/CanalServerWithEmbedded.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void start() {
7373
if (!isStart()) {
7474
super.start();
7575
// 如果存在provider,则启动metrics service
76-
if(metricsPort < 0) {
76+
if(metricsPort > 0) {
7777
loadCanalMetrics();
7878
metrics.setServerPort(metricsPort);
7979
metrics.initialize();

0 commit comments

Comments
 (0)