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

Commit cc17ed29 authored by Vasu Nori's avatar Vasu Nori
Browse files

ignore not-so-useful warning messages from sqlite logging func

bug:2524260
Change-Id: Ie397c0df9b63414205bbf8ea7ae9d1498f198524
parent 2fbc10f3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -72,8 +72,9 @@ static char *createStr(const char *path) {
}

static void sqlLogger(void *databaseName, int iErrCode, const char *zMsg) {
    LOGI("sqlite returned: database = %s, error code = %d, msg = %s\n",
            (char *)databaseName, iErrCode, zMsg);
    // skip printing this message if it is due to certain types of errors
    if (iErrCode == SQLITE_CONSTRAINT) return;
    LOGI("sqlite returned: error code = %d, msg = %s\n", iErrCode, zMsg);
}

// register the logging func on sqlite. needs to be done BEFORE any sqlite3 func is called.