OSDN Git Service

Fix ProfileSaver logging
authorCalin Juravle <calin@google.com>
Thu, 18 May 2017 05:02:07 +0000 (22:02 -0700)
committerCalin Juravle <calin@google.com>
Thu, 18 May 2017 05:31:35 +0000 (22:31 -0700)
The LOG(ERROR) should have been a LOG(WARNING) and because the
run-test captures the errors, test 595 is failing.

Test: m test-art-host-run-test-595-profile-saving
Bug: 37711886
Change-Id: I69fa46d763e8e5f59c0f6a9778f725ee559eff6a

runtime/jit/profile_saver.cc

index 602ece0..1e6f7a8 100644 (file)
@@ -293,7 +293,7 @@ bool ProfileSaver::ProcessProfilingInfo(bool force_save, /*out*/uint16_t* number
     }
     ProfileCompilationInfo info;
     if (!info.Load(filename, /*clear_if_invalid*/ true)) {
-      LOG(ERROR) << "Could not forcefully load profile " << filename;
+      LOG(WARNING) << "Could not forcefully load profile " << filename;
       continue;
     }
     uint64_t last_save_number_of_methods = info.GetNumberOfMethods();