Commit af46ccfe authored by 董建华's avatar 董建华

妥协用全称吧

parent 09d446a7
......@@ -28,7 +28,7 @@ import org.springframework.context.annotation.Configuration;
*/
@Slf4j
@ConditionalOnProperty(
name = {"sentry.dsn"}
name = {"sentry.dsn","threrr.dingDingToken"}
)
@Configuration
@EnableConfigurationProperties({SentryProperties.class,ThrErrProProperties.class})
......@@ -47,7 +47,7 @@ public class SentryDingdingConfiguration {
@Bean("thrErrSentryClient")
public SentryClient thrErrSentryClient() {
log.info("init sentry client... dsn:{}", this.properties.getDsn());
log.info("init sentry thrErrSentryClient... dsn:{}", this.properties.getDsn());
SentryExceptionHandler sentryDingdingExceptionHandler = getSentryDingdingExceptionHandler();
SentryClientFactory sentryClientFactory = new ThrErrSentryClientFactory(sentryDingdingExceptionHandler);
SentryClient sentryClient = Sentry.init(this.properties.getDsn(), sentryClientFactory);
......
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