Merge "Remove spammy FUSE redaction logs" into rvc-dev am: 31d9b5c830
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/providers/MediaProvider/+/12000931
Change-Id: I60067590fdbebbf01d444e8cc9ba5f4347896461
diff --git a/jni/RedactionInfo.cpp b/jni/RedactionInfo.cpp
index d943c8a..17de22e 100644
--- a/jni/RedactionInfo.cpp
+++ b/jni/RedactionInfo.cpp
@@ -14,12 +14,8 @@
* limitations under the License.
*/
-#define LOG_TAG "RedactionInfo"
-
#include "include/libfuse_jni/RedactionInfo.h"
-#include <android-base/logging.h>
-
using std::unique_ptr;
using std::vector;
@@ -94,7 +90,6 @@
unique_ptr<vector<RedactionRange>> RedactionInfo::getOverlappingRedactionRanges(size_t size,
off64_t off) const {
- LOG(DEBUG) << "Computing redaction ranges for request: sz = " << size << " off = " << off;
if (hasOverlapWithReadRequest(size, off)) {
auto first_redaction = redaction_ranges_.end();
auto last_redaction = redaction_ranges_.end();
@@ -112,12 +107,9 @@
last_redaction = iter;
}
if (first_redaction != redaction_ranges_.end()) {
- LOG(DEBUG) << "Returning " << (int)(last_redaction - first_redaction + 1)
- << " redaction ranges!";
return std::make_unique<vector<RedactionRange>>(first_redaction, last_redaction + 1);
}
}
- LOG(DEBUG) << "No relevant redaction ranges!";
return std::make_unique<vector<RedactionRange>>();
}
} // namespace fuse