From 50458d1fbce41b2fda42d448c4e5dfbca5ae2a29 Mon Sep 17 00:00:00 2001 From: TebbeUbben Date: Sun, 8 Apr 2018 18:15:27 +0200 Subject: [PATCH] log.error("Unhandled exception", e); --- .../java/info/nightscout/androidaps/db/DatabaseHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }