summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Buynytskyy <alexbuy@google.com>2021-04-19 12:03:04 -0700
committerAlex Buynytskyy <alexbuy@google.com>2021-04-22 21:37:50 -0700
commitddbe38525a58d9bbc909a82a5da7bfddbf0f4718 (patch)
tree004de5eebc3cb0a09b5b81921184f04e7ce66143
parentcd1636fc216be5410b490b2999363654b9b76103 (diff)
downloadincremental_delivery-ddbe38525a58d9bbc909a82a5da7bfddbf0f4718.tar.gz
Add more debug info.
Bug: 185298880 Test: atest IncrementalFeatureTest Change-Id: I5a68802c5176de7ea888fd5984bbf6ae58b86707 Merged-In: I5a68802c5176de7ea888fd5984bbf6ae58b86707
-rw-r--r--incfs/incfs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/incfs/incfs.cpp b/incfs/incfs.cpp
index e205c19..32e36a9 100644
--- a/incfs/incfs.cpp
+++ b/incfs/incfs.cpp
@@ -117,7 +117,9 @@ static bool isFsAvailable() {
if (!ab::ReadFileToString(kProcFilesystems, &filesystems)) {
return false;
}
- return filesystems.find("\t" INCFS_NAME "\n") != std::string::npos;
+ const auto result = filesystems.find("\t" INCFS_NAME "\n") != std::string::npos;
+ LOG(INFO) << "isFsAvailable: " << (result ? "true" : "false");
+ return result;
}
static int getFirstApiLevel() {
@@ -131,6 +133,7 @@ static std::string_view incFsPropertyValue() {
static const auto kDefaultValue{getFirstApiLevel() > R_API ? "on" : ""};
static const ab::NoDestructor<std::string> kValue{
IncrementalProperties::enable().value_or(kDefaultValue)};
+ LOG(INFO) << "ro.incremental.enable: " << *kValue;
return *kValue;
}