Skip to content

Commit da98c23

Browse files
committed
Improve error logging
1 parent eb2126f commit da98c23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/eternalcode/parcellockers/database/DatabaseManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void disconnect() {
9191
this.dataSource.close();
9292
this.connectionSource.close();
9393
} catch (Exception exception) {
94-
exception.printStackTrace();
94+
this.logger.severe("Failed to disconnect from the database: " + exception.getMessage());
9595
}
9696
}
9797

0 commit comments

Comments
 (0)