Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d4b8bb19
authored
Apr 10, 2020
by
maxianming
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed by fllife: handle_msg太长, 导致xxl_job_log更新失败,从而导致不能触发失败告警
parent
23490980
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java
View file @
d4b8bb19
...
...
@@ -110,7 +110,13 @@ public class AdminBizImpl implements AdminBiz {
// success, save log
log
.
setHandleTime
(
new
Date
());
log
.
setHandleCode
(
handleCallbackParam
.
getExecuteResult
().
getCode
());
log
.
setHandleMsg
(
handleMsg
.
toString
());
if
(
handleMsg
.
length
()
>
15000
)
{
// text最大64kb 避免长度过长
log
.
setHandleMsg
(
handleMsg
.
substring
(
0
,
15000
));
}
else
{
log
.
setHandleMsg
(
handleMsg
.
toString
());
}
xxlJobLogDao
.
updateHandleInfo
(
log
);
return
ReturnT
.
SUCCESS
;
...
...
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