1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-28 07:50:11 +02:00

Also log the number of rows (samples) returned by the query #91

This commit is contained in:
cpfeiffer 2015-09-09 20:52:04 +02:00
parent 2dec5574cc
commit bddf6c8909

View File

@ -183,6 +183,7 @@ public class ActivityDatabaseHandler extends SQLiteOpenHelper implements DBHandl
final String order = "timestamp";
try (SQLiteDatabase db = this.getReadableDatabase()) {
try (Cursor cursor = db.query(TABLE_GBACTIVITYSAMPLES, null, where, null, null, null, order)) {
LOG.info("Activity query result: " + cursor.getCount() + " samples");
if (cursor.moveToFirst()) {
do {
GBActivitySample sample = new GBActivitySample(