日志长度
This commit is contained in:
parent
defa8e33e7
commit
0383012f22
|
@ -64,9 +64,17 @@ public class SqlLogInterceptor implements Interceptor {
|
|||
stringBuffer.append(paramList.get(i));
|
||||
}
|
||||
}
|
||||
log.info("completeSql:"+stringBuffer.toString());
|
||||
if ( stringBuffer.toString().length() <= 1000){
|
||||
log.info("completeSql:"+stringBuffer.toString());
|
||||
}else {
|
||||
log.info("completeSql:"+stringBuffer.toString().substring(1000));
|
||||
}
|
||||
}else {
|
||||
log.info("completeSql:"+sql);
|
||||
if ( sql.length() <= 1000){
|
||||
log.info("completeSql:"+sql);
|
||||
}else {
|
||||
log.info("completeSql:"+sql.substring(1000));
|
||||
}
|
||||
}
|
||||
Object proceed = invocation.proceed();
|
||||
int result = 0;
|
||||
|
|
|
@ -137,6 +137,7 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
//
|
||||
@Resource
|
||||
private ApplicationCache applicationCache;
|
||||
private String pc = "uapws/rest/file/uploadfile";
|
||||
|
||||
@Value("${savefile.tomcatpath:}")
|
||||
public String TOMCATPATH;
|
||||
|
@ -1942,7 +1943,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" + body);
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" + body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
body.append(e.getMessage());
|
||||
|
@ -2037,7 +2040,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" + body);
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" + body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
body.append(e.getMessage());
|
||||
|
@ -2343,7 +2348,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body.append(EntityUtils.toString(entity1,"UTF-8"));
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" + body);
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" + body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
body.append(e.getMessage());
|
||||
|
@ -2423,7 +2430,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" + body);
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" + body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
body.append(e.getMessage());
|
||||
|
@ -2712,7 +2721,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" + body);
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" + body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
body.append(e.getMessage());
|
||||
|
@ -2795,7 +2806,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" + body);
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" + body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
body.append(e.getMessage());
|
||||
|
@ -3782,7 +3795,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body = EntityUtils.toByteArray(entity);
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" +Base64.getEncoder().encodeToString(body));
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" +body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
flag = false;
|
||||
|
@ -3863,7 +3878,9 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
|||
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||
}
|
||||
flag = true;
|
||||
logger.info("返回结果:" + body);
|
||||
if(!url.toString().toLowerCase().contains(pc.toLowerCase())){
|
||||
logger.info("返回结果:" +body);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error("请求错误:" + e.getMessage());
|
||||
body.append(e.getMessage());
|
||||
|
|
Loading…
Reference in New Issue