-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix/silence SQLite log messages at first launch #6295
Comments
Do you have any idea what the magic numbers like |
I set a breakpoint inside
We could fix this by moving the |
@jfirebaugh Moving the log setting to
No, I have no idea what those are — will have to dig into the SQLite docs if this becomes an issue again. A side-effect of enabling SQLite logging is that we also see errors from other databases within our process, like this one from NSURLSession that occurred after I had paused execution:
|
I also looked into suppressing We will need to find a way to isolate this benign first launch |
Oh, hmm, that points to a problem. What if the app embedding the SDK expects to be able to set its own logging callback? It's a race to who can set it first, our code or their code. |
This was fixed in #11865 |
The new SQLite logging from #6291 now shows us a few messages on database creation. We should decide if these represent bugs or just messages that we can silence.
SQLITE_CANTOPEN
(14) is expected because of how we fail-open the database on first launch.SQLITE_MISUSE
(21) isn’t clear and worries me a bit. → Move SQLite logging setup to before database initialization #6296iOS (simulator):
Android (emulator):
/cc @jfirebaugh
The text was updated successfully, but these errors were encountered: