refactor(3p/nix/libutil): Replace internal logging library with glog

This commit is contained in:
Vincent Ambo 2020-05-18 02:34:41 +01:00
parent c584480cd4
commit 6dc6c29fa4
10 changed files with 76 additions and 44 deletions

View file

@ -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) {