mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
@@ -73,7 +73,7 @@ public class CanalServerWithEmbedded extends AbstractCanalLifeCycle implements C
|
|||||||
if (!isStart()) {
|
if (!isStart()) {
|
||||||
super.start();
|
super.start();
|
||||||
// 如果存在provider,则启动metrics service
|
// 如果存在provider,则启动metrics service
|
||||||
if(metricsPort < 0) {
|
if(metricsPort > 0) {
|
||||||
loadCanalMetrics();
|
loadCanalMetrics();
|
||||||
metrics.setServerPort(metricsPort);
|
metrics.setServerPort(metricsPort);
|
||||||
metrics.initialize();
|
metrics.initialize();
|
||||||
|
|||||||
Reference in New Issue
Block a user