Skip to content

Commit c48410b

Browse files
committed
feat: remove printStackTrace from exception handlers (#84)
1 parent 44c7dff commit c48410b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/org/casbin/adapter/JDBCBaseAdapter.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ public void savePolicy(Model model) {
284284
conn.commit();
285285
} catch (SQLException e) {
286286
conn.rollback();
287-
288-
e.printStackTrace();
289287
throw e;
290288
} finally {
291289
conn.setAutoCommit(true);
@@ -375,8 +373,6 @@ public void addPolicies(String sec, String ptype, List<List<String>> rules) {
375373
conn.commit();
376374
} catch (SQLException e) {
377375
conn.rollback();
378-
379-
e.printStackTrace();
380376
throw e;
381377
} finally {
382378
conn.setAutoCommit(true);
@@ -438,8 +434,6 @@ public void removePolicies(String sec, String ptype, List<List<String>> rules) {
438434
conn.commit();
439435
} catch (SQLException e) {
440436
conn.rollback();
441-
442-
e.printStackTrace();
443437
throw e;
444438
} finally {
445439
conn.setAutoCommit(true);
@@ -514,8 +508,6 @@ public void updatePolicy(String sec, String ptype, List<String> oldRule, List<St
514508
conn.commit();
515509
} catch (SQLException e) {
516510
conn.rollback();
517-
518-
e.printStackTrace();
519511
throw e;
520512
} finally {
521513
conn.setAutoCommit(true);

0 commit comments

Comments
 (0)