diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-19T00·24+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-19T00·24+0100 |
commit | 939dd9f8176266add4d88572203739fa74b14fa5 (patch) | |
tree | a1458c60656ee8d11651888b3b622039e65d8bca /third_party/nix/src/libexpr/function-trace.cc | |
parent | d0c44425e147ab7d38410f400825ad20da15037b (diff) |
refactor(3p/nix/libexpr): Replace logging.h with glog r/758
Diffstat (limited to 'third_party/nix/src/libexpr/function-trace.cc')
-rw-r--r-- | third_party/nix/src/libexpr/function-trace.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/function-trace.cc b/third_party/nix/src/libexpr/function-trace.cc index 2bc0d943f339..4f164e6c4498 100644 --- a/third_party/nix/src/libexpr/function-trace.cc +++ b/third_party/nix/src/libexpr/function-trace.cc @@ -1,17 +1,18 @@ #include "function-trace.hh" +#include <glog/logging.h> namespace nix { FunctionCallTrace::FunctionCallTrace(const Pos& pos) : pos(pos) { auto duration = std::chrono::high_resolution_clock::now().time_since_epoch(); auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(duration); - printMsg(lvlInfo, "function-trace entered %1% at %2%", pos, ns.count()); + LOG(INFO) << "function-trace entered " << pos << " at " << ns.count(); } FunctionCallTrace::~FunctionCallTrace() { auto duration = std::chrono::high_resolution_clock::now().time_since_epoch(); auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(duration); - printMsg(lvlInfo, "function-trace exited %1% at %2%", pos, ns.count()); + LOG(INFO) << "function-trace exited " << pos << " at " << ns.count(); } } // namespace nix |