about summary refs log tree commit diff
path: root/third_party/nix/src/libutil/serialise.cc
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-18T01·34+0100
committerVincent Ambo <tazjin@google.com>2020-05-18T01·34+0100
commit6dc6c29fa4a4ddd3bb72f8415fac5936d719bd44 (patch)
tree560a8389d1682465599d94193053811acfd5de37 /third_party/nix/src/libutil/serialise.cc
parentc584480cd46fb49e690e931f326472e512a82878 (diff)
refactor(3p/nix/libutil): Replace internal logging library with glog r/754
Diffstat (limited to 'third_party/nix/src/libutil/serialise.cc')
-rw-r--r--third_party/nix/src/libutil/serialise.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/nix/src/libutil/serialise.cc b/third_party/nix/src/libutil/serialise.cc
index 6d7cb1d8d156..1014ef8f70c3 100644
--- a/third_party/nix/src/libutil/serialise.cc
+++ b/third_party/nix/src/libutil/serialise.cc
@@ -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) {