From 505b6b044b132b28e1501491bcfe6bd68ca1989e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 19 May 2020 01:02:44 +0100 Subject: refactor(3p/nix/libstore): Replace logging.h with glog --- third_party/nix/src/libstore/machines.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'third_party/nix/src/libstore/machines.cc') diff --git a/third_party/nix/src/libstore/machines.cc b/third_party/nix/src/libstore/machines.cc index 526afdbbc0cb..0bd65c230253 100644 --- a/third_party/nix/src/libstore/machines.cc +++ b/third_party/nix/src/libstore/machines.cc @@ -1,4 +1,5 @@ #include "machines.hh" +#include #include #include "globals.hh" #include "util.hh" @@ -53,15 +54,19 @@ void parseMachines(const std::string& s, Machines& machines) { try { parseMachines(readFile(file), machines); } catch (const SysError& e) { - if (e.errNo != ENOENT) throw; - debug("cannot find machines file '%s'", file); + if (e.errNo != ENOENT) { + throw; + } + DLOG(INFO) << "cannot find machines file: " << file; } continue; } auto tokens = tokenizeString>(line); auto sz = tokens.size(); - if (sz < 1) throw FormatError("bad machine specification '%s'", line); + if (sz < 1) { + throw FormatError("bad machine specification '%s'", line); + } auto isSet = [&](size_t n) { return tokens.size() > n && tokens[n] != "" && tokens[n] != "-"; -- cgit 1.4.1