about summary refs log tree commit diff
path: root/third_party/nix/src/nix/log.cc
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-19T03·52+0100
committerVincent Ambo <tazjin@google.com>2020-05-19T03·52+0100
commit95a57f15ca795eb1b36363b7d6db6b88bfe444e2 (patch)
treead9328cded554eb7d3e153075c6750a17ca39803 /third_party/nix/src/nix/log.cc
parent9aa2ecd78cc865f69a9e978ae55ab0f3eda73c46 (diff)
refactor(3p/nix/nix-*): Replace logging with glog in binaries r/762
Diffstat (limited to 'third_party/nix/src/nix/log.cc')
-rw-r--r--third_party/nix/src/nix/log.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/third_party/nix/src/nix/log.cc b/third_party/nix/src/nix/log.cc
index 350d5c4a4999..3dab7746dd99 100644
--- a/third_party/nix/src/nix/log.cc
+++ b/third_party/nix/src/nix/log.cc
@@ -1,6 +1,6 @@
+#include <glog/logging.h>
 #include "command.hh"
 #include "common-args.hh"
-#include "progress-bar.hh"
 #include "shared.hh"
 #include "store-api.hh"
 
@@ -45,9 +45,8 @@ struct CmdLog : InstallableCommand {
         log = sub->getBuildLog(output.second);
       }
       if (!log) continue;
-      stopProgressBar();
-      printInfo("got build log for '%s' from '%s'", installable->what(),
-                sub->getUri());
+      LOG(INFO) << "got build log for '" << installable->what() << "' from '"
+                << sub->getUri() << "'";
       std::cout << *log;
       return;
     }