Skip to content

Commit

Permalink
fixed issue #4813, support metric.port = -1 (#4891)
Browse files Browse the repository at this point in the history
  • Loading branch information
coalchan authored Oct 7, 2023
1 parent cda330e commit 11f8916
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void start() {
if (!isStart()) {
super.start();
// 如果存在provider,则启动metrics service
if(metricsPort < 0) {
if(metricsPort > 0) {
loadCanalMetrics();
metrics.setServerPort(metricsPort);
metrics.initialize();
Expand Down

0 comments on commit 11f8916

Please sign in to comment.