about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-19T00·24+0100
committerVincent Ambo <tazjin@google.com>2020-05-19T00·24+0100
commit939dd9f8176266add4d88572203739fa74b14fa5 (patch)
treea1458c60656ee8d11651888b3b622039e65d8bca /third_party/nix/src/libexpr/eval.cc
parentd0c44425e147ab7d38410f400825ad20da15037b (diff)
refactor(3p/nix/libexpr): Replace logging.h with glog r/758
Diffstat (limited to 'third_party/nix/src/libexpr/eval.cc')
-rw-r--r--third_party/nix/src/libexpr/eval.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/third_party/nix/src/libexpr/eval.cc b/third_party/nix/src/libexpr/eval.cc
index 14b600b06e..5aefc120e2 100644
--- a/third_party/nix/src/libexpr/eval.cc
+++ b/third_party/nix/src/libexpr/eval.cc
@@ -16,6 +16,7 @@
 #include "json.hh"
 #include "store-api.hh"
 #include "util.hh"
+#include <glog/logging.h>
 
 #if HAVE_BOEHMGC
 
@@ -232,7 +233,7 @@ void initGC() {
     if (pageSize != -1) size = (pageSize * pages) / 4;  // 25% of RAM
     if (size > maxSize) size = maxSize;
 #endif
-    debug(format("setting initial heap size to %1% bytes") % size);
+    DLOG(INFO) << "setting initial heap size to " << size << " bytes";
     GC_expand_hp(size);
   }
 
@@ -375,7 +376,7 @@ Path EvalState::checkSourcePath(const Path& path_) {
         "access to path '%1%' is forbidden in restricted mode", abspath);
 
   /* Resolve symlinks. */
-  debug(format("checking access to '%s'") % abspath);
+  DLOG(INFO) << "checking access to '" << abspath << "'";
   Path path = canonPath(abspath, true);
 
   for (auto& i : *allowedPaths) {
@@ -689,7 +690,7 @@ void EvalState::evalFile(const Path& path_, Value& v) {
     return;
   }
 
-  printTalkative("evaluating file '%1%'", path2);
+  DLOG(INFO) << "evaluating file '" << path2 << "'";
   Expr* e = nullptr;
 
   auto j = fileParseCache.find(path2);
@@ -1530,8 +1531,7 @@ string EvalState::copyPathToStore(PathSet& context, const Path& path) {
             : store->addToStore(baseNameOf(path), checkSourcePath(path), true,
                                 htSHA256, defaultPathFilter, repair);
     srcToStore[path] = dstPath;
-    printMsg(lvlChatty,
-             format("copied source '%1%' -> '%2%'") % path % dstPath);
+    DLOG(INFO) << "copied source '" << path << "' -> '" << dstPath << "'";
   }
 
   context.insert(dstPath);