ssb: More logging to help track down an issue I've seen on rare occasion when saving app changes from the editor.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 34m43s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 34m43s
This commit is contained in:
parent
3c60f8ca06
commit
6a9167e565
@ -946,7 +946,12 @@ bool tf_ssb_db_blob_store(tf_ssb_t* ssb, const uint8_t* blob, size_t size, char*
|
|||||||
{
|
{
|
||||||
if (sqlite3_bind_text(statement, 1, id, -1, NULL) == SQLITE_OK && sqlite3_bind_blob(statement, 2, blob, size, NULL) == SQLITE_OK)
|
if (sqlite3_bind_text(statement, 1, id, -1, NULL) == SQLITE_OK && sqlite3_bind_blob(statement, 2, blob, size, NULL) == SQLITE_OK)
|
||||||
{
|
{
|
||||||
result = sqlite3_step(statement) == SQLITE_DONE;
|
int r = sqlite3_step(statement);
|
||||||
|
result = r == SQLITE_DONE;
|
||||||
|
if (!result)
|
||||||
|
{
|
||||||
|
tf_printf("Blob store failed: %s.", sqlite3_errmsg(db));
|
||||||
|
}
|
||||||
rows = sqlite3_changes(db);
|
rows = sqlite3_changes(db);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user