about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-03T23·15+0100
committertazjin <mail@tazj.in>2020-08-03T23·18+0000
commitae31f51dc8e4a83d0a1a7e9f77698efe14226d39 (patch)
tree64d651659823c1c38c56591ed7e27d4615b536af
parent31b9578ad028cf5eff7fa426f134891cbba83ca9 (diff)
fix(3p/nix): Initialise glog when starting nix-daemon r/1572
Change-Id: Ic9b5bd2f66fb54675498d8328edecfd31a03997a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1630
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
-rw-r--r--third_party/nix/src/nix-daemon/nix-daemon.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/nix/src/nix-daemon/nix-daemon.cc b/third_party/nix/src/nix-daemon/nix-daemon.cc
index 02b350c3d87b..f4128fa4b252 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);