Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
shenjunjie
brandkbs2
Commits
763f198a
Commit
763f198a
authored
Mar 16, 2023
by
shenjunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志包恢复打印
parent
de4bf917
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
src/main/java/com/zhiwei/brandkbs2/exception/ExceptionCatch.java
+1
-1
src/main/resources/application.properties
+1
-1
src/main/resources/pushlog.properties
+6
-6
No files found.
src/main/java/com/zhiwei/brandkbs2/exception/ExceptionCatch.java
View file @
763f198a
...
@@ -50,7 +50,7 @@ public class ExceptionCatch {
...
@@ -50,7 +50,7 @@ public class ExceptionCatch {
@ExceptionHandler
(
Exception
.
class
)
@ExceptionHandler
(
Exception
.
class
)
public
ResponseResult
exception
(
Exception
exception
)
{
public
ResponseResult
exception
(
Exception
exception
)
{
//记录日志
//记录日志
log
.
error
(
"catch exception:"
,
exception
);
log
.
info
(
"catch exception:"
,
exception
);
//返回400操作失败
//返回400操作失败
return
new
ResponseResult
(
CommonCodeEnum
.
FAIL
,
Collections
.
EMPTY_LIST
);
return
new
ResponseResult
(
CommonCodeEnum
.
FAIL
,
Collections
.
EMPTY_LIST
);
}
}
...
...
src/main/resources/application.properties
View file @
763f198a
spring.profiles.active
=
pro
spring.profiles.active
=
pro
d
src/main/resources/pushlog.properties
View file @
763f198a
...
@@ -10,8 +10,8 @@ dev.robot.push.filterclass=org.apache.dubbo.common.Version,com.alibaba.dubbo.com
...
@@ -10,8 +10,8 @@ dev.robot.push.filterclass=org.apache.dubbo.common.Version,com.alibaba.dubbo.com
dev.robot.push.level
=
error
dev.robot.push.level
=
error
dev.robot.push.app.name
=
brandkbs2-dev
dev.robot.push.app.name
=
brandkbs2-dev
pro.robot.push.address
=
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=759b600c-d47a-4c6b-9a9b-90b6c80d343c
prod.robot.push.address
=
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=759b600c-d47a-4c6b-9a9b-90b6c80d343c
pro.robot.push.enable
=
true
prod.robot.push.enable
=
true
pro.robot.push.filterclass
=
org.apache.dubbo.common.Version,com.alibaba.dubbo.common.Version,org.apache.dubbo.monitor.dubbo.DubboMonitor,com.alibaba.dubbo.monitor.dubbo.DubboMonitor
prod.robot.push.filterclass
=
org.apache.dubbo.common.Version,com.alibaba.dubbo.common.Version,org.apache.dubbo.monitor.dubbo.DubboMonitor,com.alibaba.dubbo.monitor.dubbo.DubboMonitor
pro.robot.push.level
=
error
prod.robot.push.level
=
error
pro.robot.push.app.name
=
brandkbs2-prod
prod.robot.push.app.name
=
brandkbs2-prod
\ No newline at end of file
\ No newline at end of file
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