diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-19T03·52+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-19T03·52+0100 |
commit | 95a57f15ca795eb1b36363b7d6db6b88bfe444e2 (patch) | |
tree | ad9328cded554eb7d3e153075c6750a17ca39803 /third_party/nix/src/nix-copy-closure | |
parent | 9aa2ecd78cc865f69a9e978ae55ab0f3eda73c46 (diff) |
refactor(3p/nix/nix-*): Replace logging with glog in binaries r/762
Diffstat (limited to 'third_party/nix/src/nix-copy-closure')
-rw-r--r-- | third_party/nix/src/nix-copy-closure/nix-copy-closure.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc b/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc index 3cc29ae337ff..e4ae1bb35ad6 100644 --- a/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc +++ b/third_party/nix/src/nix-copy-closure/nix-copy-closure.cc @@ -1,3 +1,4 @@ +#include <glog/logging.h> #include "legacy.hh" #include "shared.hh" #include "store-api.hh" @@ -21,10 +22,10 @@ static int _main(int argc, char** argv) { else if (*arg == "--version") printVersion("nix-copy-closure"); else if (*arg == "--gzip" || *arg == "--bzip2" || *arg == "--xz") { - if (*arg != "--gzip") - printMsg(lvlError, format("Warning: '%1%' is not implemented, " - "falling back to gzip") % - *arg); + if (*arg != "--gzip") { + LOG(WARNING) << "'" << *arg + << "' is not implemented, falling back to gzip"; + } gzip = true; } else if (*arg == "--from") toMode = false; @@ -33,7 +34,7 @@ static int _main(int argc, char** argv) { else if (*arg == "--include-outputs") includeOutputs = true; else if (*arg == "--show-progress") - printMsg(lvlError, "Warning: '--show-progress' is not implemented"); + LOG(WARNING) << "'--show-progress' is not implemented"; else if (*arg == "--dry-run") dryRun = true; else if (*arg == "--use-substitutes" || *arg == "-s") |