mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[rrd4j] Improve logging of exceptions thrown by getDB (#14068)
Add exception message for better identification of root cause. Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
parent
e5f30b1f18
commit
e7938ae357
@ -156,7 +156,7 @@ public class RRD4jPersistenceService implements QueryablePersistenceService {
|
||||
try {
|
||||
db = getDB(name);
|
||||
} catch (Exception e) {
|
||||
logger.warn("Failed to open rrd4j database '{}' ({})", name, e.getClass().getName());
|
||||
logger.warn("Failed to open rrd4j database '{}' to store data ({})", name, e.toString());
|
||||
}
|
||||
if (db == null) {
|
||||
return;
|
||||
@ -258,7 +258,7 @@ public class RRD4jPersistenceService implements QueryablePersistenceService {
|
||||
try {
|
||||
db = getDB(itemName);
|
||||
} catch (Exception e) {
|
||||
logger.warn("Failed to open rrd4j database '{}' ({})", itemName, e.getClass().getName());
|
||||
logger.warn("Failed to open rrd4j database '{}' for querying ({})", itemName, e.toString());
|
||||
return List.of();
|
||||
}
|
||||
if (db == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user