!313 异步保存日志的时候,报错被吞 ,导致没跑进RemoteLogFallbackFactory中

Merge pull request !313 from Llorando/master
pull/76/MERGE
若依 2 years ago committed by Gitee
commit 7421d7ccce
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -27,7 +27,7 @@ public interface RemoteLogService
* @return
*/
@PostMapping("/operlog")
public R<Boolean> saveLog(@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
public R<Boolean> saveLog(@RequestBody SysOperLog sysOperLog, @RequestHeader(SecurityConstants.FROM_SOURCE) String source) throws Exception;
/**
* 访

@ -22,8 +22,7 @@ public class AsyncLogService
*
*/
@Async
public void saveSysLog(SysOperLog sysOperLog)
{
public void saveSysLog(SysOperLog sysOperLog) throws Exception {
remoteLogService.saveLog(sysOperLog, SecurityConstants.INNER);
}
}

Loading…
Cancel
Save