diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-05-01 14:32:06 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-05-01 14:32:06 -0600 |
commit | 4b99c09f5ccd385d2bf0c82a8c9a4ae1658abbe8 (patch) | |
tree | 44b6f9543e794ecaf3fd5b491c53dbbe9e0a4e58 /src/libstore/sqlite.cc | |
parent | a3030e3c3186f980716c475155c387bf18041a3f (diff) |
convert some errors
Diffstat (limited to 'src/libstore/sqlite.cc')
-rw-r--r-- | src/libstore/sqlite.cc | 5 |
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 |