mirror of
https://github.com/PowerJob/PowerJob.git
synced 2025-07-17 00:00:04 +08:00
feat: optimize DatabaseMonitorAspect
This commit is contained in:
parent
74f70cd58b
commit
1b9d8331a1
@ -55,7 +55,7 @@ public class DatabaseMonitorAspect {
|
||||
event.setRows(parseEffectRows(ret));
|
||||
return ret;
|
||||
} catch (Throwable t) {
|
||||
event.setErrorMsg(t.getMessage()).setStatus(DatabaseEvent.Status.FAILED);
|
||||
event.setErrorMsg(t.getClass().getSimpleName()).setStatus(DatabaseEvent.Status.FAILED);
|
||||
throw t;
|
||||
} finally {
|
||||
long cost = System.currentTimeMillis() - startTs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user