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
d06eae47
Commit
d06eae47
authored
May 15, 2021
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整日志
parent
8053ff05
Pipeline
#958
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ThrErrAsyncConnectionWarp.java
.../java/cn/quantgroup/config/ThrErrAsyncConnectionWarp.java
+6
-6
No files found.
src/main/java/cn/quantgroup/config/ThrErrAsyncConnectionWarp.java
View file @
d06eae47
...
@@ -18,20 +18,20 @@ import java.io.IOException;
...
@@ -18,20 +18,20 @@ import java.io.IOException;
*/
*/
@Slf4j
@Slf4j
public
class
ThrErrAsyncConnectionWarp
implements
Connection
{
public
class
ThrErrAsyncConnectionWarp
implements
Connection
{
private
final
Connection
connection
;
private
final
Connection
connection
;
private
final
SentryExceptionHandler
handler
;
private
final
SentryExceptionHandler
handler
;
ThrErrAsyncConnectionWarp
(
Connection
connection
,
SentryExceptionHandler
handler
)
{
ThrErrAsyncConnectionWarp
(
Connection
connection
,
SentryExceptionHandler
handler
)
{
this
.
connection
=
connection
;
this
.
connection
=
connection
;
this
.
handler
=
handler
;
this
.
handler
=
handler
;
}
}
@Override
@Override
public
void
send
(
Event
event
)
throws
ConnectionException
{
public
void
send
(
Event
event
)
throws
ConnectionException
{
try
{
try
{
log
.
info
(
"要异常了"
);
connection
.
send
(
event
);
connection
.
send
(
event
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
)
{
log
.
warn
(
"sentry调用异常将使用自定义的handler处理异常!"
,
e
);
handler
.
handle
(
e
);
handler
.
handle
(
e
);
throw
e
;
throw
e
;
}
}
...
...
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