Reduce an error log to a warning.
Test: m
Bug: 197600124
Change-Id: I71263bce8dd3f79940e0c9f8383db70a4c3c83ce
diff --git a/libprofile/profile/profile_compilation_info.cc b/libprofile/profile/profile_compilation_info.cc
index 92d9360..7565a0b 100644
--- a/libprofile/profile/profile_compilation_info.cc
+++ b/libprofile/profile/profile_compilation_info.cc
@@ -968,10 +968,10 @@
methods_section_size;
VLOG(profiler) << "Required capacity: " << total_uncompressed_size << " bytes.";
if (total_uncompressed_size > GetSizeErrorThresholdBytes()) {
- LOG(ERROR) << "Profile data size exceeds "
- << GetSizeErrorThresholdBytes()
- << " bytes. Profile will not be written to disk."
- << " It requires " << total_uncompressed_size << " bytes.";
+ LOG(WARNING) << "Profile data size exceeds "
+ << GetSizeErrorThresholdBytes()
+ << " bytes. Profile will not be written to disk."
+ << " It requires " << total_uncompressed_size << " bytes.";
return false;
}