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

Commit 91d0e3c9 authored by Vasu Nori's avatar Vasu Nori
Browse files
register a logging func with sqlite, to get extra info on errors
sqlite3 (latest patch) from DRH included this functionality.
use it to get more useful debugging info from sqlite
parent 0eaa4d3a
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -75,11 +75,11 @@ static void registerLoggingFunc() {
    }

    LOGV("Registering sqlite logging func \n");
    //int err = sqlite3_config(SQLITE_CONFIG_LOG, &sqlLogger, 0);
    //if (err != SQLITE_OK) {
        //LOGE("sqlite_config failed error_code = %d. THIS SHOULD NEVER occur.\n", err);
        //#return;
    //}
    int err = sqlite3_config(SQLITE_CONFIG_LOG, &sqlLogger, 0);
    if (err != SQLITE_OK) {
        LOGE("sqlite_config failed error_code = %d. THIS SHOULD NEVER occur.\n", err);
        return;
    }
    loggingFuncSet = true;
}