mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Add DB debug logging.
This commit is contained in:
parent
6125744c20
commit
82cc7fe507
1 changed files with 3 additions and 0 deletions
|
@ -1106,6 +1106,9 @@ public class BlurDatabaseHelper {
|
|||
* only if the device's platform provides support.
|
||||
*/
|
||||
private Cursor rawQuery(String sql, String[] selectionArgs, CancellationSignal cancellationSignal) {
|
||||
if (AppConstants.VERBOSE_LOG_DB) {
|
||||
Log.d(this.getClass().getName(), String.format("DB rawQuery: '%s' with args: %s", sql, java.util.Arrays.toString(selectionArgs)));
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
|
||||
return dbRO.rawQuery(sql, selectionArgs, cancellationSignal);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue