diff options
Diffstat (limited to 'third_party/nix/src/libstore/profiles.cc')
-rw-r--r-- | third_party/nix/src/libstore/profiles.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/third_party/nix/src/libstore/profiles.cc b/third_party/nix/src/libstore/profiles.cc index 614153d89dd3..51379710e22f 100644 --- a/third_party/nix/src/libstore/profiles.cc +++ b/third_party/nix/src/libstore/profiles.cc @@ -1,5 +1,6 @@ #include "profiles.hh" #include <errno.h> +#include <glog/logging.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> @@ -110,10 +111,10 @@ void deleteGeneration(const Path& profile, unsigned int gen) { static void deleteGeneration2(const Path& profile, unsigned int gen, bool dryRun) { - if (dryRun) - printInfo(format("would remove generation %1%") % gen); - else { - printInfo(format("removing generation %1%") % gen); + if (dryRun) { + LOG(INFO) << "would remove generation " << gen; + } else { + LOG(INFO) << "removing generation " << gen; deleteGeneration(profile, gen); } } |