diff options
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 |