Skip to content

Commit

Permalink
JBERET-452: Mask db-creds from exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
DaScheid authored and liweinan committed Jan 29, 2024
1 parent 87dd820 commit eeef999
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ private Connection getConnection() {
try {
return DriverManager.getConnection(dbUrl, dbProperties);
} catch (final Exception e) {
throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, dbProperties);
throw BatchMessages.MESSAGES.failToObtainConnection(e, dbUrl, "<db props> masked");
}
}
}
Expand Down

0 comments on commit eeef999

Please sign in to comment.