diff --git a/src/net/sqlcipher/database/SQLiteDatabase.java b/src/net/sqlcipher/database/SQLiteDatabase.java index e0a5e869..494b6510 100644 --- a/src/net/sqlcipher/database/SQLiteDatabase.java +++ b/src/net/sqlcipher/database/SQLiteDatabase.java @@ -1433,10 +1433,8 @@ public Cursor rawQueryWithFactory( if (Config.LOGV || duration >= mSlowQueryThreshold) { Log.v(TAG, - "query (" + duration + " ms): " + driver.toString() + ", args are " - + (selectionArgs != null - ? TextUtils.join(",", selectionArgs) - : "") + ", count is " + count); + "query (" + duration + " ms): " + driver.toString() + + ", args are , count is " + count); } } } @@ -1486,7 +1484,7 @@ public long insert(String table, String nullColumnHack, ContentValues values) { try { return insertWithOnConflict(table, nullColumnHack, values, CONFLICT_NONE); } catch (SQLException e) { - Log.e(TAG, "Error inserting " + values, e); + Log.e(TAG, "Error inserting into " + table, e); return -1; } } @@ -1525,7 +1523,7 @@ public long replace(String table, String nullColumnHack, ContentValues initialVa return insertWithOnConflict(table, nullColumnHack, initialValues, CONFLICT_REPLACE); } catch (SQLException e) { - Log.e(TAG, "Error inserting " + initialValues, e); + Log.e(TAG, "Error inserting into " + table, e); return -1; } } @@ -1628,11 +1626,11 @@ public long insertWithOnConflict(String table, String nullColumnHack, long insertedRowId = lastInsertRow(); if (insertedRowId == -1) { - Log.e(TAG, "Error inserting " + initialValues + " using " + sql); + Log.e(TAG, "Error inserting using into " + table); } else { if (Config.LOGD && Log.isLoggable(TAG, Log.VERBOSE)) { - Log.v(TAG, "Inserting row " + insertedRowId + " from " - + initialValues + " using " + sql); + Log.v(TAG, "Inserting row " + insertedRowId + + " from using into " + table); } } return insertedRowId; @@ -1770,14 +1768,15 @@ public int updateWithOnConflict(String table, ContentValues values, statement.execute(); int numChangedRows = lastChangeCount(); if (Config.LOGD && Log.isLoggable(TAG, Log.VERBOSE)) { - Log.v(TAG, "Updated " + numChangedRows + " using " + values + " and " + sql); + Log.v(TAG, "Updated " + numChangedRows + + " rows using and for " + table); } return numChangedRows; } catch (SQLiteDatabaseCorruptException e) { onCorruption(); throw e; } catch (SQLException e) { - Log.e(TAG, "Error updating " + values + " using " + sql); + Log.e(TAG, "Error updating using for " + table); throw e; } finally { if (statement != null) {