[kvdb] Add more error logs.

This commit is contained in:
armink 2023-11-19 11:27:23 +08:00
parent a2c442435c
commit 2dea1b2b88
1 changed files with 2 additions and 1 deletions

View File

@ -403,12 +403,13 @@ static fdb_err_t tsl_append(fdb_tsdb_t db, fdb_blob_t blob, fdb_time_t *timestam
result = update_sec_status(db, &db->cur_sec, blob, cur_time); result = update_sec_status(db, &db->cur_sec, blob, cur_time);
if (result != FDB_NO_ERR) { if (result != FDB_NO_ERR) {
FDB_INFO("Error: update the sector status failed (%d)", result);
return result; return result;
} }
/* write the TSL node */ /* write the TSL node */
result = write_tsl(db, blob, cur_time); result = write_tsl(db, blob, cur_time);
if (result != FDB_NO_ERR) { if (result != FDB_NO_ERR) {
FDB_INFO("Error: write tsl failed (%d)", result);
return result; return result;
} }