aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/sqlite.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-01 14:32:06 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-01 14:32:06 -0600
commit4b99c09f5ccd385d2bf0c82a8c9a4ae1658abbe8 (patch)
tree44b6f9543e794ecaf3fd5b491c53dbbe9e0a4e58 /src/libstore/sqlite.cc
parenta3030e3c3186f980716c475155c387bf18041a3f (diff)
convert some errors
Diffstat (limited to 'src/libstore/sqlite.cc')
-rw-r--r--src/libstore/sqlite.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc
index a72cd5d88..082c54005 100644
--- a/src/libstore/sqlite.cc
+++ b/src/libstore/sqlite.cc
@@ -204,7 +204,10 @@ void handleSQLiteBusy(SQLiteBusy & e)
if (now > lastWarned + 10) {
lastWarned = now;
- printError("warning: %s", e.what());
+ logWarning(
+ ErrorInfo { .name = "sqlite busy",
+ .hint = hintfmt(e.what())
+ });
}
/* Sleep for a while since retrying the transaction right away