Improved logging on failed updates

Former-commit-id: 76b8b8829276b32926e096b400e32f59dbaca8ea
This commit is contained in:
Jeremy Long
2013-05-13 11:54:25 -04:00
parent 6a51fe9564
commit 2330e71b8a

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);
}
}
}