about summary refs log tree commit diff
path: root/third_party/nix/src/nix/edit.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/edit.cc
parent9aa2ecd78cc865f69a9e978ae55ab0f3eda73c46 (diff)
refactor(3p/nix/nix-*): Replace logging with glog in binaries r/762
Diffstat (limited to 'third_party/nix/src/nix/edit.cc')
-rw-r--r--third_party/nix/src/nix/edit.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/third_party/nix/src/nix/edit.cc b/third_party/nix/src/nix/edit.cc
index 8f31e19a1049..631cae60ebc7 100644
--- a/third_party/nix/src/nix/edit.cc
+++ b/third_party/nix/src/nix/edit.cc
@@ -1,8 +1,8 @@
+#include <glog/logging.h>
 #include <unistd.h>
 #include "attr-path.hh"
 #include "command.hh"
 #include "eval.hh"
-#include "progress-bar.hh"
 #include "shared.hh"
 
 using namespace nix;
@@ -36,7 +36,7 @@ struct CmdEdit : InstallableCommand {
     }
 
     auto pos = state->forceString(*v2);
-    debug("position is %s", pos);
+    DLOG(INFO) << "position is " << pos;
 
     auto colon = pos.rfind(':');
     if (colon == std::string::npos)
@@ -61,8 +61,6 @@ struct CmdEdit : InstallableCommand {
 
     args.push_back(filename);
 
-    stopProgressBar();
-
     execvp(args.front().c_str(), stringsToCharPtrs(args).data());
 
     throw SysError("cannot run editor '%s'", editor);