Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spring-boot-starter-sentry-dingding
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董建华
spring-boot-starter-sentry-dingding
Commits
af46ccfe
Commit
af46ccfe
authored
Jun 01, 2021
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
妥协用全称吧
parent
09d446a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
SentryDingdingConfiguration.java
...ava/cn/quantgroup/config/SentryDingdingConfiguration.java
+2
-2
No files found.
src/main/java/cn/quantgroup/config/SentryDingdingConfiguration.java
View file @
af46ccfe
...
@@ -28,7 +28,7 @@ import org.springframework.context.annotation.Configuration;
...
@@ -28,7 +28,7 @@ import org.springframework.context.annotation.Configuration;
*/
*/
@Slf4j
@Slf4j
@ConditionalOnProperty
(
@ConditionalOnProperty
(
name
=
{
"sentry.dsn"
}
name
=
{
"sentry.dsn"
,
"threrr.dingDingToken"
}
)
)
@Configuration
@Configuration
@EnableConfigurationProperties
({
SentryProperties
.
class
,
ThrErrProProperties
.
class
})
@EnableConfigurationProperties
({
SentryProperties
.
class
,
ThrErrProProperties
.
class
})
...
@@ -47,7 +47,7 @@ public class SentryDingdingConfiguration {
...
@@ -47,7 +47,7 @@ public class SentryDingdingConfiguration {
@Bean
(
"thrErrSentryClient"
)
@Bean
(
"thrErrSentryClient"
)
public
SentryClient
thrErrSentryClient
()
{
public
SentryClient
thrErrSentryClient
()
{
log
.
info
(
"init sentry
c
lient... dsn:{}"
,
this
.
properties
.
getDsn
());
log
.
info
(
"init sentry
thrErrSentryC
lient... dsn:{}"
,
this
.
properties
.
getDsn
());
SentryExceptionHandler
sentryDingdingExceptionHandler
=
getSentryDingdingExceptionHandler
();
SentryExceptionHandler
sentryDingdingExceptionHandler
=
getSentryDingdingExceptionHandler
();
SentryClientFactory
sentryClientFactory
=
new
ThrErrSentryClientFactory
(
sentryDingdingExceptionHandler
);
SentryClientFactory
sentryClientFactory
=
new
ThrErrSentryClientFactory
(
sentryDingdingExceptionHandler
);
SentryClient
sentryClient
=
Sentry
.
init
(
this
.
properties
.
getDsn
(),
sentryClientFactory
);
SentryClient
sentryClient
=
Sentry
.
init
(
this
.
properties
.
getDsn
(),
sentryClientFactory
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment