From ae31f51dc8e4a83d0a1a7e9f77698efe14226d39 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 4 Aug 2020 00:15:58 +0100 Subject: [PATCH] fix(3p/nix): Initialise glog when starting nix-daemon Change-Id: Ic9b5bd2f66fb54675498d8328edecfd31a03997a Reviewed-on: https://cl.tvl.fyi/c/depot/+/1630 Reviewed-by: glittershark Tested-by: BuildkiteCI --- third_party/nix/src/nix-daemon/nix-daemon.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/third_party/nix/src/nix-daemon/nix-daemon.cc b/third_party/nix/src/nix-daemon/nix-daemon.cc index 02b350c3d..f4128fa4b 100644 --- a/third_party/nix/src/nix-daemon/nix-daemon.cc +++ b/third_party/nix/src/nix-daemon/nix-daemon.cc @@ -113,6 +113,9 @@ int RunServer() { } // namespace nix::daemon int main(int argc, char** argv) { + FLAGS_logtostderr = true; + google::InitGoogleLogging(argv[0]); + absl::SetFlagsUsageConfig({.version_string = [] { return nix::nixVersion; }}); absl::ParseCommandLine(argc, argv);