refactor(3p/nix/libutil): Replace internal logging library with glog
This commit is contained in:
parent
c584480cd4
commit
6dc6c29fa4
10 changed files with 76 additions and 44 deletions
6
third_party/nix/src/libutil/serialise.cc
vendored
6
third_party/nix/src/libutil/serialise.cc
vendored
|
|
@ -3,6 +3,7 @@
|
|||
#include <cerrno>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include "glog/logging.h"
|
||||
#include "util.hh"
|
||||
|
||||
namespace nix {
|
||||
|
|
@ -47,9 +48,8 @@ FdSink::~FdSink() {
|
|||
size_t threshold = 256 * 1024 * 1024;
|
||||
|
||||
static void warnLargeDump() {
|
||||
printError(
|
||||
"warning: dumping very large path (> 256 MiB); this may run out of "
|
||||
"memory");
|
||||
LOG(WARNING)
|
||||
<< "dumping very large path (> 256 MiB); this may run out of memory";
|
||||
}
|
||||
|
||||
void FdSink::write(const unsigned char* data, size_t len) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue