refactor(3p/nix/libstore): Replace logging.h with glog
This commit is contained in:
parent
ce99ba42df
commit
505b6b044b
25 changed files with 514 additions and 464 deletions
3
third_party/nix/src/libstore/sqlite.cc
vendored
3
third_party/nix/src/libstore/sqlite.cc
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue