Commit b2dbaf51 authored by 张永's avatar 张永

V1.1.7.3

parent f02d2829
......@@ -209,7 +209,7 @@
</executions>
<configuration>
<repository>dockerhub.linkfern.com/b2c/shopapi</repository>
<tag>V1.1.7.2</tag>
<tag>V1.1.7.3</tag>
<buildArgs>
<JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
</buildArgs>
......
......@@ -50,6 +50,10 @@ public class IDCSystemLogAspect {
@Value("${server.shop.name:shop}")
private String serverShopName;
@Value("${server.shop.insert.idcsystemlog:false}")
private boolean isCreateLog;
// 扫描使用@LogResource注解的方法
@Pointcut("@annotation(com.egolm.shop.common.component.IDCLogResource)")
public void logPointCut() {
......@@ -82,10 +86,11 @@ public class IDCSystemLogAspect {
statusCode = 500;
/** CHECKSTYLE:ON:MagicNumber */
}
System.out.println();
if(isCreateLog) {
syncSaveLog(point, startTime, new Date(), exception, result, statusCode);
}
}
}
@Async
void syncSaveLog(ProceedingJoinPoint joinPoint, Date startTime, Date endTime,
......
......@@ -7,6 +7,7 @@ server.session.timeout=90000
server.tomcat.uri-encoding=utf-8
server.shop.name=shop
server.shop.insert.idcsystemlog=false
spring.http.multipart.maxFileSize=5MB
spring.http.multipart.maxRequestSize=5MB
......
......@@ -24,6 +24,8 @@
</head>
<body>
<div id="app">
<el-divider content-position="left">V1.1.7.3 2024-2-27</el-divider>
<p class="title">1.增加开关,是否写idcSystemLog表</p>
<el-divider content-position="left">V1.1.7.2 2024-1-29</el-divider>
<p class="title">1.增加server.shop.name参数,便于分布式布署区分日志。</p>
<el-divider content-position="left">V1.1.7.1 2024-1-18</el-divider>
......
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