diff --git a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java index aa7de54dff..def47b6440 100644 --- a/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java +++ b/app/src/main/java/info/nightscout/androidaps/db/DatabaseHelper.java @@ -346,7 +346,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { try { getDaoBgReadings().update(bgReading); } catch (SQLException e) { - e.printStackTrace(); + log.error("Unhandled exception", e); } } @@ -1234,7 +1234,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { try { return getDaoCareportalEvents().queryForId(timestamp); } catch (SQLException e) { - e.printStackTrace(); + log.error("Unhandled exception", e); } return null; }