错误日志

This commit is contained in:
钱涛 2022-11-03 21:37:25 +08:00
parent b1f1da3686
commit 5f749e4646
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,7 @@ public class ResponseResult<T, R> {
}
return Ok(f.apply(t));
} catch (SalaryRunTimeException e) {
log.error("salary api run fail", e);
return Error(e.getMessage());
} catch (ECException e) {
log.error("salary api run fail", e);
@ -78,6 +79,7 @@ public class ResponseResult<T, R> {
f.accept(t);
return Ok();
} catch (SalaryRunTimeException e) {
log.error("salary api run fail", e);
return Error(e.getMessage());
} catch (ECException e) {
log.error("salary api run fail", e);
@ -99,6 +101,7 @@ public class ResponseResult<T, R> {
}
return Ok(f.get());
} catch (SalaryRunTimeException e) {
log.error("salary api run fail", e);
return Error(e.getMessage());
} catch (ECException e) {
log.error("salary api run fail", e);