Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87e9c5da authored by Edgar Arriaga's avatar Edgar Arriaga
Browse files

Make slow queries logs show only when log tag enabled

Test: Manual
Bug: 205056348
Change-Id: Ie3ef14e053381003f0c3de00b0260c7669d18c8c
parent 2de9ed31
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -70,7 +70,8 @@ public final class SQLiteDebug {
        /**
         * True to enable database performance testing instrumentation.
         */
        public static final boolean DEBUG_LOG_SLOW_QUERIES = Build.IS_DEBUGGABLE;
        public static final boolean DEBUG_LOG_SLOW_QUERIES =
                Log.isLoggable("SQLiteSlowQueries", Log.VERBOSE);

        private static final String SLOW_QUERY_THRESHOLD_PROP = "db.log.slow_query_threshold";