about summary refs log tree commit diff
path: root/third_party/nix/src/nix-collect-garbage
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix-collect-garbage')
-rw-r--r--third_party/nix/src/nix-collect-garbage/nix-collect-garbage.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/nix-collect-garbage/nix-collect-garbage.cc b/third_party/nix/src/nix-collect-garbage/nix-collect-garbage.cc
index 9c65b0877375..6c78c1d2709a 100644
--- a/third_party/nix/src/nix-collect-garbage/nix-collect-garbage.cc
+++ b/third_party/nix/src/nix-collect-garbage/nix-collect-garbage.cc
@@ -1,3 +1,4 @@
+#include <glog/logging.h>
 #include <cerrno>
 #include <iostream>
 #include "globals.hh"
@@ -34,7 +35,7 @@ void removeOldGenerations(std::string dir) {
         if (e.errNo == ENOENT) continue;
       }
       if (link.find("link") != string::npos) {
-        printInfo(format("removing old generations of profile %1%") % path);
+        LOG(INFO) << "removing old generations of profile " << path;
         if (deleteOlderThan != "")
           deleteGenerationsOlderThan(path, deleteOlderThan, dryRun);
         else