fix(3p/nix): Initialise glog when starting nix-daemon

Change-Id: Ic9b5bd2f66fb54675498d8328edecfd31a03997a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1630
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2020-08-04 00:15:58 +01:00 committed by tazjin
parent 31b9578ad0
commit ae31f51dc8

View file

@ -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);