Skip to content

Commit

Permalink
Fix SudoMain : Non constant string as argument to info logging call
Browse files Browse the repository at this point in the history
 from log.info(String.format("%n%n%s", SQL_INVALID_AUTHORIZATION_SPEC_EXCEPTION.getLogBackMessage()));
 to log.info("\n\n{}", SQL_INVALID_AUTHORIZATION_SPEC_EXCEPTION.getLogBackMessage());
  • Loading branch information
Lob2018 committed Nov 10, 2024
1 parent abba283 commit 8bc76b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/softsf/sudofx2024/SudoMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private static void sqlInvalidAuthorization(Exception e, SQLInvalidAuthorization
String sqlState = sqlException.getSQLState();
if ("28000".equals(sqlState) || "28501".equals(sqlState)) {
log.error(String.format("██ SQLInvalidAuthorizationSpecException with sqlstate==(28000||28501) catch : %s", e.getMessage()), e);
log.info(String.format("%n%n%s", SQL_INVALID_AUTHORIZATION_SPEC_EXCEPTION.getLogBackMessage()));
log.info("\n\n{}", SQL_INVALID_AUTHORIZATION_SPEC_EXCEPTION.getLogBackMessage());
}
}

Expand Down

0 comments on commit 8bc76b3

Please sign in to comment.