summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Ioffe <ioffe@google.com>2020-09-30 17:26:43 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-09-30 17:26:43 +0000
commit06aefcc4cb632bd982640309f551359199527782 (patch)
treecae3e91172a907c79f108e2cebfaf65ad6577335
parent97820af7e39f8173fe6aa476c016d0be0a2542a0 (diff)
parent84853fbcd1d0f25b16162cf70f6b39040f1a6c95 (diff)
downloadplatform_system_apex-06aefcc4cb632bd982640309f551359199527782.tar.gz
platform_system_apex-06aefcc4cb632bd982640309f551359199527782.tar.bz2
platform_system_apex-06aefcc4cb632bd982640309f551359199527782.zip
Merge "Remove spamy log lines and set minimum severity to INFO"
-rw-r--r--apexd/apex_preinstalled_data.cpp9
-rw-r--r--apexd/apexd_main.cpp2
2 files changed, 4 insertions, 7 deletions
diff --git a/apexd/apex_preinstalled_data.cpp b/apexd/apex_preinstalled_data.cpp
index 827566fb..a7b9f49d 100644
--- a/apexd/apex_preinstalled_data.cpp
+++ b/apexd/apex_preinstalled_data.cpp
@@ -59,14 +59,11 @@ Result<void> ApexPreinstalledData::ScanDir(const std::string& dir) {
auto it = data_.find(name);
if (it == data_.end()) {
- LOG(INFO) << "Added " << apex_data.path << " ( " << name
- << " ) to list of pre-installed apexes";
data_[name] = apex_data;
} else if (it->second.public_key != apex_data.public_key) {
- return Error() << "Key for package " << name
- << " does not match with previously scanned key";
- } else {
- LOG(INFO) << apex_data.path << " ( " << name << " ) is already added";
+ return Error() << "Key for package " << apex_data.path << " ( " << name
+ << ") does not match with previously scanned key from "
+ << it->second.path;
}
}
return {};
diff --git a/apexd/apexd_main.cpp b/apexd/apexd_main.cpp
index 3b0a1399..9e4220e7 100644
--- a/apexd/apexd_main.cpp
+++ b/apexd/apexd_main.cpp
@@ -102,7 +102,7 @@ void InstallSigtermSignalHandler() {
int main(int /*argc*/, char** argv) {
android::base::InitLogging(argv, &android::base::KernelLogger);
// TODO(b/158468454): add a -v flag or an external setting to change severity.
- android::base::SetMinimumLogSeverity(android::base::VERBOSE);
+ android::base::SetMinimumLogSeverity(android::base::INFO);
// set umask to 022 so that files/dirs created are accessible to other
// processes e.g.) apex-info-file.xml is supposed to be read by other