diff options
author | Elliott Hughes <enh@google.com> | 2016-06-24 15:12:21 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-06-27 08:11:31 -0700 |
commit | f86b5a6b90619e02d1d034ef7b0adc3b439f4abb (patch) | |
tree | 1348657947a4a875d740dc1df134ae9150ef53d6 /init/import_parser.cpp | |
parent | 90db709a2fbccefcee82e54289cd517cd8cb99b5 (diff) |
Move init to libbase logging.
Change-Id: Ibfbefeff587a69e948978a037c555fd12a5ade6a
Diffstat (limited to 'init/import_parser.cpp')
-rw-r--r-- | init/import_parser.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/init/import_parser.cpp b/init/import_parser.cpp index e2a0f8330..d52247b3e 100644 --- a/init/import_parser.cpp +++ b/init/import_parser.cpp @@ -38,7 +38,7 @@ bool ImportParser::ParseSection(const std::vector<std::string>& args, return false; } - INFO("Added '%s' to import list\n", conf_file.c_str()); + LOG(INFO) << "Added '" << conf_file << "' to import list"; imports_.emplace_back(std::move(conf_file)); return true; } @@ -48,8 +48,7 @@ void ImportParser::EndFile(const std::string& filename) { imports_.clear(); for (const auto& s : current_imports) { if (!Parser::GetInstance().ParseConfig(s)) { - ERROR("could not import file '%s' from '%s': %s\n", - s.c_str(), filename.c_str(), strerror(errno)); + PLOG(ERROR) << "could not import file '" << s << "' from '" << filename << "'"; } } } |