refactor(3p/nix/libstore): Replace logging.h with glog

This commit is contained in:
Vincent Ambo 2020-05-19 01:02:44 +01:00
parent ce99ba42df
commit 505b6b044b
25 changed files with 514 additions and 464 deletions

View file

@ -1,4 +1,5 @@
#include "sqlite.hh"
#include <glog/logging.h>
#include <sqlite3.h>
#include <atomic>
#include "util.hh"
@ -157,7 +158,7 @@ void handleSQLiteBusy(const SQLiteBusy& e) {
if (now > lastWarned + 10) {
lastWarned = now;
printError("warning: %s", e.what());
LOG(ERROR) << e.what();
}
/* Sleep for a while since retrying the transaction right away