Improved logging on failed updates

Former-commit-id: edfd14af594e7692e238a69b4fd2090361efddd5
This commit is contained in:
Jeremy Long
2013-05-13 11:54:25 -04:00
parent 8fe80a4507
commit e7be883e2e

View File

@@ -250,9 +250,10 @@ public class Engine {
source.update();
} catch (UpdateException ex) {
Logger.getLogger(Engine.class.getName()).log(Level.WARNING,
"Unable to update " + source.getClass().getName());
"Unable to update {0}", source.getClass().getName());
Logger.getLogger(Engine.class.getName()).log(Level.INFO,
"Unable to update details for " + source.getClass().getName(), ex);
String.format("Unable to update details for {0}",
source.getClass().getName()), ex);
}
}
}