Skip to content

Commit

Permalink
Added logger to vuln insert sql for debugging statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ctevse committed Dec 10, 2023
1 parent 509e96e commit dcfebc2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public int insertOrUpdateVulnerabilityFull(CompositeVulnerability vuln, boolean
vvStatement.executeUpdate();
rs = vvStatement.getGeneratedKeys();
if (rs.next()) {
log.info("Column name: {}", rs.getMetaData().getColumnName(1));
int versionId = rs.getInt(1);
int versionIdByName = rs.getInt("vuln_version_id");
log.info("rs.getInt(1) returned {}\nrs.getInt(\"vuln_version_id\") returned {}", versionId, versionIdByName);
Expand Down

0 comments on commit dcfebc2

Please sign in to comment.