From 939dd9f8176266add4d88572203739fa74b14fa5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 19 May 2020 01:24:50 +0100 Subject: refactor(3p/nix/libexpr): Replace logging.h with glog --- third_party/nix/src/libexpr/function-trace.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'third_party/nix/src/libexpr/function-trace.cc') diff --git a/third_party/nix/src/libexpr/function-trace.cc b/third_party/nix/src/libexpr/function-trace.cc index 2bc0d943f3..4f164e6c44 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 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(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(duration); - printMsg(lvlInfo, "function-trace exited %1% at %2%", pos, ns.count()); + LOG(INFO) << "function-trace exited " << pos << " at " << ns.count(); } } // namespace nix -- cgit 1.4.1