Log more information if we fail to establish our database connection.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1458 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -160,7 +160,8 @@ public class StaticConnectionProvider implements ConnectionProvider
|
|||||||
conn = DriverManager.getConnection(url, username, password);
|
conn = DriverManager.getConnection(url, username, password);
|
||||||
} catch (SQLException sqe) {
|
} catch (SQLException sqe) {
|
||||||
err = "Error creating database connection " +
|
err = "Error creating database connection " +
|
||||||
"[ident=" + ident + "].";
|
"[ident=" + ident + ", driver=" + driver + ", url=" + url +
|
||||||
|
", username=" + username + "].";
|
||||||
throw new PersistenceException(err, sqe);
|
throw new PersistenceException(err, sqe);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user