Commit 1e29a22c authored by 技术部-任文超's avatar 技术部-任文超

Merge branch 'master' into 20190522-VerifyCode

parents ef0cdcb4 887c4263
package cn.quantgroup.xyqb.config.sentry; package cn.quantgroup.xyqb.config.sentry;
import cn.quantgroup.tech.util.TechEnvironment;
import io.sentry.Sentry; import io.sentry.Sentry;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.servlet.ServletContextInitializer; import org.springframework.boot.web.servlet.ServletContextInitializer;
...@@ -32,6 +33,8 @@ public class SentryConfig { ...@@ -32,6 +33,8 @@ public class SentryConfig {
@PostConstruct @PostConstruct
public void initSentry(){ 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