Skip to content

Commit f09ab05

Browse files
authored
Update DerbySelectAllCarsPropertiesEx.java
1 parent c366c3b commit f09ab05

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

jdbc/DerbySelectAllCarsPropertiesEx.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@
1414

1515
public class DerbySelectAllCarsPropertiesEx {
1616

17-
private static Properties getConnectionData() {
17+
private static Properties getConnectionData() {
1818

1919
Properties props = new Properties();
20-
20+
2121
String fileName = "src/main/resources/db.properties";
2222

2323
try (FileInputStream in = new FileInputStream(fileName)) {
2424
props.load(in);
2525
} catch (IOException ex) {
26-
Logger.getLogger(DerbySelectAllCarsPropertiesEx.class.getName()).log(Level.SEVERE, null, ex);
26+
Logger lgr = Logger.getLogger(DerbySelectAllCarsPropertiesEx.class.getName());
27+
lgr.log(Level.SEVERE, ex.getMessage(), ex);
2728
}
28-
29+
2930
return props;
3031
}
3132

@@ -68,3 +69,4 @@ public static void main(String[] args) {
6869
}
6970
}
7071

72+

0 commit comments

Comments
 (0)