diff options
author | Alex Buynytskyy <alexbuy@google.com> | 2021-04-19 12:03:04 -0700 |
---|---|---|
committer | Alex Buynytskyy <alexbuy@google.com> | 2021-04-22 21:37:50 -0700 |
commit | ddbe38525a58d9bbc909a82a5da7bfddbf0f4718 (patch) | |
tree | 004de5eebc3cb0a09b5b81921184f04e7ce66143 | |
parent | cd1636fc216be5410b490b2999363654b9b76103 (diff) | |
download | incremental_delivery-ddbe38525a58d9bbc909a82a5da7bfddbf0f4718.tar.gz |
Add more debug info.
Bug: 185298880
Test: atest IncrementalFeatureTest
Change-Id: I5a68802c5176de7ea888fd5984bbf6ae58b86707
Merged-In: I5a68802c5176de7ea888fd5984bbf6ae58b86707
-rw-r--r-- | incfs/incfs.cpp | 5 |
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; } |