Skip to content

Commit b8b5ce7

Browse files
better logging
1 parent c6dd45e commit b8b5ce7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/ru/r2cloud/satellite/SatelliteDao.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public static List<Satellite> loadFromClasspathConfig(String metaLocation, Satel
300300
try (BufferedReader r = new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8))) {
301301
rawSatellites = Json.parse(r).asArray();
302302
} catch (Exception e) {
303-
LOG.error("unable to parse satellites", e);
303+
LOG.error("unable to parse satellites: {}", metaLocation, e);
304304
return result;
305305
}
306306
for (int i = 0; i < rawSatellites.size(); i++) {
@@ -322,7 +322,7 @@ private void loadInstruments(Path location) {
322322
try (BufferedReader r = Files.newBufferedReader(location)) {
323323
raw = Json.parse(r).asArray();
324324
} catch (Exception e) {
325-
LOG.error("unable to load instruments", e);
325+
LOG.error("unable to load instruments: {}", location, e);
326326
return;
327327
}
328328
for (int i = 0; i < raw.size(); i++) {
@@ -343,7 +343,7 @@ private static List<Satellite> loadFromConfig(Path metaLocation, SatelliteSource
343343
try (BufferedReader r = Files.newBufferedReader(metaLocation)) {
344344
rawSatellites = Json.parse(r).asArray();
345345
} catch (Exception e) {
346-
LOG.error("unable to parse satellites", e);
346+
LOG.error("unable to parse satellites: {}", metaLocation, e);
347347
return result;
348348
}
349349
for (int i = 0; i < rawSatellites.size(); i++) {

0 commit comments

Comments
 (0)