Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
*/
package com.alipay.sofa.rpc.boot.context;

import com.alipay.sofa.rpc.boot.common.SofaBootRpcParserUtil;
import com.alipay.sofa.rpc.boot.config.FaultToleranceConfigurator;
import com.alipay.sofa.rpc.boot.config.SofaBootRpcProperties;
import com.alipay.sofa.rpc.boot.container.ProviderConfigContainer;
import com.alipay.sofa.rpc.boot.container.RegistryConfigContainer;
import com.alipay.sofa.rpc.boot.container.ServerConfigContainer;
import com.alipay.sofa.rpc.boot.context.event.SofaBootRpcStartEvent;
import com.alipay.sofa.rpc.config.ProviderConfig;
import com.alipay.sofa.rpc.event.LookoutSubscriber;
import org.springframework.context.ApplicationListener;
import org.springframework.util.CollectionUtils;

Expand Down Expand Up @@ -63,8 +61,6 @@ public SofaBootRpcStartListener(SofaBootRpcProperties sofaBootRpcProperties,

@Override
public void onApplicationEvent(SofaBootRpcStartEvent event) {
//choose disable metrics lookout
disableLookout();

//extra info
processExtra(event);
Expand Down Expand Up @@ -93,12 +89,4 @@ protected void processExtra(SofaBootRpcStartEvent event) {

}

protected void disableLookout() {
Boolean disable = SofaBootRpcParserUtil.parseBoolean(sofaBootRpcProperties
.getLookoutCollectDisable());

if (disable != null) {
LookoutSubscriber.setLookoutCollectDisable(disable);
}
}
}