feat: optimize DatabaseMonitorAspect

This commit is contained in:
tjq 2022-09-12 21:00:01 +08:00
parent 74f70cd58b
commit 1b9d8331a1

View File

@ -55,7 +55,7 @@ public class DatabaseMonitorAspect {
event.setRows(parseEffectRows(ret)); event.setRows(parseEffectRows(ret));
return ret; return ret;
} catch (Throwable t) { } catch (Throwable t) {
event.setErrorMsg(t.getMessage()).setStatus(DatabaseEvent.Status.FAILED); event.setErrorMsg(t.getClass().getSimpleName()).setStatus(DatabaseEvent.Status.FAILED);
throw t; throw t;
} finally { } finally {
long cost = System.currentTimeMillis() - startTs; long cost = System.currentTimeMillis() - startTs;