Exception message + exception object save to log

This commit is contained in:
Igor I
2025-05-20 13:03:53 +05:00
parent 3e0ba9279b
commit 9f45e71b59
10 changed files with 82 additions and 79 deletions

View File

@ -194,7 +194,7 @@ public class PreparedStatementNamed {
try{
tm = new java.sql.Timestamp(dfm.parse(value).getTime());
} catch (Exception ex) {
logger.error("Error",ex.getMessage());
logger.error(ex.getMessage(), ex);
}
for (int i = 0; i < fields.size(); i++) {
if (fields.get(i).name.equals(name)) {