loggerd: direct Initialize params instead of copy (#33622)

Direct Initialize Instead of Copy
pull/33624/head
Dean Lee 7 months ago committed by GitHub
parent 2b37624dee
commit 0bdad1fee0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/loggerd/logger.cc

@ -40,7 +40,7 @@ kj::Array<capnp::word> logger_build_init_data() {
init.setOsVersion(util::read_file("/VERSION"));
// log params
auto params = Params(util::getenv("PARAMS_COPY_PATH", ""));
Params params(util::getenv("PARAMS_COPY_PATH", ""));
std::map<std::string, std::string> params_map = params.readAll();
init.setGitCommit(params_map["GitCommit"]);

Loading…
Cancel
Save