about summary refs log tree commit diff
path: root/third_party/nix/src/libstore/legacy-ssh-store.cc
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-05-19T00·02+0100
committerVincent Ambo <tazjin@google.com>2020-05-19T00·04+0100
commit505b6b044b132b28e1501491bcfe6bd68ca1989e (patch)
tree1c1ed8a195f5c94050754316c842a3f8623c6cbe /third_party/nix/src/libstore/legacy-ssh-store.cc
parentce99ba42df493bb521f47789fb8902d7693c5b9c (diff)
refactor(3p/nix/libstore): Replace logging.h with glog r/756
Diffstat (limited to 'third_party/nix/src/libstore/legacy-ssh-store.cc')
-rw-r--r--third_party/nix/src/libstore/legacy-ssh-store.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/third_party/nix/src/libstore/legacy-ssh-store.cc b/third_party/nix/src/libstore/legacy-ssh-store.cc
index 4dc6c0fbec36..893b454ac6f9 100644
--- a/third_party/nix/src/libstore/legacy-ssh-store.cc
+++ b/third_party/nix/src/libstore/legacy-ssh-store.cc
@@ -1,5 +1,6 @@
 #include "archive.hh"
 #include "derivations.hh"
+#include "glog/logging.h"
 #include "pool.hh"
 #include "remote-store.hh"
 #include "serve-protocol.hh"
@@ -90,7 +91,8 @@ struct LegacySSHStore : public Store {
     try {
       auto conn(connections->get());
 
-      debug("querying remote host '%s' for info on '%s'", host, path);
+      DLOG(INFO) << "querying remote host '" << host << "' for info on '"
+                 << path << "'";
 
       conn->to << cmdQueryPathInfos << PathSet{path};
       conn->to.flush();
@@ -125,7 +127,8 @@ struct LegacySSHStore : public Store {
   void addToStore(const ValidPathInfo& info, Source& source, RepairFlag repair,
                   CheckSigsFlag checkSigs,
                   std::shared_ptr<FSAccessor> accessor) override {
-    debug("adding path '%s' to remote host '%s'", info.path, host);
+    DLOG(INFO) << "adding path '" << info.path << "' to remote host '" << host
+               << "'";
 
     auto conn(connections->get());