Commit 887c4263 authored by 技术部-任文超's avatar 技术部-任文超

开发/测试环境停用sentry

parent e37b7e20
package cn.quantgroup.xyqb.config.sentry;
import cn.quantgroup.tech.util.TechEnvironment;
import io.sentry.Sentry;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.servlet.ServletContextInitializer;
......@@ -32,6 +33,8 @@ public class SentryConfig {
@PostConstruct
public void initSentry(){
Sentry.init(dsn);
if (TechEnvironment.isPro()) {
Sentry.init(dsn);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment