print message to System.err because we want to see them on `systemctl status hacky`
parent
b7b6c2bda9
commit
aa0bcd3e99
|
@ -16,7 +16,7 @@ public class QuizBackend {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try (Connection connection = DriverManager.getConnection(dbName, dbUsername, dbPassword)) {
|
try (Connection connection = DriverManager.getConnection(dbName, dbUsername, dbPassword)) {
|
||||||
System.out.println("Database connected!");
|
System.err.println("Database connected!");
|
||||||
}
|
}
|
||||||
catch (SQLException e) {
|
catch (SQLException e) {
|
||||||
System.err.println("Could not connect to DB.");
|
System.err.println("Could not connect to DB.");
|
||||||
|
|
Loading…
Reference in New Issue