-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,7 @@ public class Events implements Initializable { | |
buttonRun.setText("Estimate"); | ||
LOGGER.severe(Throwables.getStackTraceAsString(runService.getException())); | ||
LOGGER.info("Something went wrong..."); | ||
LOGGER.info("Linkifier version: " + getClass().getPackage().getImplementationVersion()); | ||
LOGGER.info("Please, send an email to the developer at [email protected]"); | ||
}); | ||
runService.setOnSucceeded(event -> { | ||
|
@@ -259,7 +260,14 @@ protected Void call() throws SQLException, InterruptedException { | |
try (Connection connection = DataSourceFactory.getConfiguredDataSource(properties, textPassword.getText()).getConnection()) { | ||
if (isCancelled()) return null; | ||
|
||
LOGGER.info("Successfully connected to the database."); | ||
// Info for easier debugging | ||
String databaseName = connection.getCatalog(); | ||
if (connection.getSchema()!=null) | ||
databaseName += "." + connection.getSchema(); | ||
databaseName += " @ " + connection.getMetaData().getDatabaseProductName(); | ||
databaseName += " " + connection.getMetaData().getDatabaseProductVersion(); | ||
LOGGER.info("Successfully connected to: " + databaseName); | ||
|
||
linkifier = new Linkifier(connection, properties.getProperty("schema"), Pattern.compile(properties.getProperty("tableBlacklist"))); | ||
if (isCancelled()) return null; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters