[lsan] Add logs for debugging
GitOrigin-RevId: ca3c58f0d119458d3361494ed8e92a9fca368b6a
diff --git a/lib/lsan/lsan_common.cpp b/lib/lsan/lsan_common.cpp
index 5762746..a685f7b 100644
--- a/lib/lsan/lsan_common.cpp
+++ b/lib/lsan/lsan_common.cpp
@@ -741,8 +741,11 @@
}
static bool CheckForLeaks() {
- if (&__lsan_is_turned_off && __lsan_is_turned_off())
+ if (&__lsan_is_turned_off && __lsan_is_turned_off()) {
+ VReport(1, "LeakSanitizer is disabled");
return false;
+ }
+ VReport(1, "LeakSanitizer: checking for leaks");
// Inside LockStuffAndStopTheWorld we can't run symbolizer, so we can't match
// suppressions. However if a stack id was previously suppressed, it should be
// suppressed in future checks as well.