about summary refs log tree commit diff
path: root/third_party/nix/src/nix/why-depends.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/why-depends.cc
parent9aa2ecd78cc865f69a9e978ae55ab0f3eda73c46 (diff)
refactor(3p/nix/nix-*): Replace logging with glog in binaries r/762
Diffstat (limited to '')
-rw-r--r--third_party/nix/src/nix/why-depends.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/third_party/nix/src/nix/why-depends.cc b/third_party/nix/src/nix/why-depends.cc
index 7b8650a4e8..e169d1c508 100644
--- a/third_party/nix/src/nix/why-depends.cc
+++ b/third_party/nix/src/nix/why-depends.cc
@@ -1,7 +1,7 @@
+#include <glog/logging.h>
 #include <queue>
 #include "command.hh"
 #include "fs-accessor.hh"
-#include "progress-bar.hh"
 #include "shared.hh"
 #include "store-api.hh"
 
@@ -67,13 +67,11 @@ struct CmdWhyDepends : SourceExprCommand {
     store->computeFSClosure({packagePath}, closure, false, false);
 
     if (!closure.count(dependencyPath)) {
-      printError("'%s' does not depend on '%s'", package->what(),
-                 dependency->what());
+      LOG(WARNING) << "'" << package->what() << "' does not depend on '"
+                   << dependency->what() << "'";
       return;
     }
 
-    stopProgressBar();  // FIXME
-
     auto accessor = store->getFSAccessor();
 
     auto const inf = std::numeric_limits<size_t>::max();