move logSqlTransaction in finally
@@ -170,10 +170,9 @@ public abstract class BaseSqlContext implements SqlContext {
this.errorIfAny = errorIfAny;
endExecution();
logMetric();
+ } finally {
if (!getLogContext().isHasLogged())
logSqlTransaction();
- } catch (Throwable t) {
- // just catch exception avoid affect follow method
}
}
