Skip to content

Commit

Permalink
fix: adding more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha committed Aug 28, 2024
1 parent 3acbd08 commit 952b83d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ public FlightSqlExample(final Location location, final String dbName) {
public static boolean removeDerbyDatabaseIfExists(final String dbName) {
boolean wasSuccess;
final Path path = Paths.get("target" + File.separator + dbName);
System.out.println("Db path: " + path.toAbsolutePath());

try (final Stream<Path> walk = Files.walk(path)) {
/*
Expand All @@ -282,6 +283,7 @@ public static boolean removeDerbyDatabaseIfExists(final String dbName) {
if (!(wasSuccess = e instanceof NoSuchFileException)) {
LOGGER.error(format("Failed attempt to clear DerbyDB: <%s>", e.getMessage()), e);
}
System.out.println("Derby Exception: " + e.getMessage());
}

return wasSuccess;
Expand Down

0 comments on commit 952b83d

Please sign in to comment.