refactor(3p/nix/nix-*): Replace logging with glog in binaries
This commit is contained in:
parent
9aa2ecd78c
commit
95a57f15ca
21 changed files with 120 additions and 168 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include <glog/logging.h>
|
||||
#include <cerrno>
|
||||
#include <iostream>
|
||||
#include "globals.hh"
|
||||
|
|
@ -34,7 +35,7 @@ void removeOldGenerations(std::string dir) {
|
|||
if (e.errNo == ENOENT) continue;
|
||||
}
|
||||
if (link.find("link") != string::npos) {
|
||||
printInfo(format("removing old generations of profile %1%") % path);
|
||||
LOG(INFO) << "removing old generations of profile " << path;
|
||||
if (deleteOlderThan != "")
|
||||
deleteGenerationsOlderThan(path, deleteOlderThan, dryRun);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue