diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-16 13:46:37 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-16 18:14:01 +0200 |
commit | efaffaa9d1de38efecb718aa7a99ba1f2e342ade (patch) | |
tree | 6e0f4443ddd02c73069e43e0d8a79529eaa00023 /src/nix/hash.cc | |
parent | 67a5941472ab56a798556ee2d5afc62fc38a799a (diff) |
Use Logger::stdout()
(cherry picked from commit 8f41847394524fcac40d3b5620139ca7e94a18e3)
Diffstat (limited to 'src/nix/hash.cc')
-rw-r--r-- | src/nix/hash.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix/hash.cc b/src/nix/hash.cc index 0cc523f50..01628cf6c 100644 --- a/src/nix/hash.cc +++ b/src/nix/hash.cc @@ -60,8 +60,7 @@ struct CmdHash : Command Hash h = hashSink->finish().first; if (truncate && h.hashSize > 20) h = compressHash(h, 20); - std::cout << format("%1%\n") % - h.to_string(base, base == SRI); + logger->stdout(h.to_string(base, base == SRI)); } } }; @@ -95,7 +94,7 @@ struct CmdToBase : Command void run() override { for (auto s : args) - std::cout << fmt("%s\n", Hash(s, ht).to_string(base, base == SRI)); + logger->stdout(Hash(s, ht).to_string(base, base == SRI)); } }; |