Skip to content

Commit 0204a37

Browse files
committed
Debug PG database errors
1 parent 90d1e00 commit 0204a37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/java/io/apicurio/registry/storage/impl/sql/AbstractSqlRegistryStorage.java

+5
Original file line numberDiff line numberDiff line change
@@ -3280,9 +3280,14 @@ private void createOrUpdateBranchRaw(Handle handle, GAV gav, BranchId branchId,
32803280
.bind(1, gav.getRawArtifactId()).bind(2, branchId.getRawBranchId()).bind(3, (String) null)
32813281
.bind(4, systemDefined).bind(5, user).bind(6, now).bind(7, user).bind(8, now).execute();
32823282
} catch (Exception ex) {
3283+
java.lang.System.out.println("================ createOrUpdateBranchRaw ======================");
32833284
if (!sqlStatements.isPrimaryKeyViolation(ex)) {
3285+
java.lang.System.out.println(" RETHROW: " + ex.getMessage());
3286+
ex.printStackTrace();
32843287
throw ex;
32853288
}
3289+
java.lang.System.out.println(" !IGNORED!");
3290+
java.lang.System.out.println("===============================================================");
32863291
}
32873292

32883293
// Now add the version to it.

0 commit comments

Comments
 (0)