summaryrefslogtreecommitdiff
path: root/runtime/oat_file_manager.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2023-04-26 15:08:50 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2023-04-26 15:29:40 +0000
commit8890cdfd96cebe59b62dd010747f9babb8fa005c (patch)
treeef08bb62c09e56ea3226dd0745957a21bb788a58 /runtime/oat_file_manager.cc
parentb0cf71e984edb63e1bd1a6caf051eb394223fd40 (diff)
Add some logging around runtime images.
To better diagnose problems. Test: test.py Bug: 260557058 Change-Id: I8672b9e42f43a3c8937f191658859f340059d057
Diffstat (limited to 'runtime/oat_file_manager.cc')
-rw-r--r--runtime/oat_file_manager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/oat_file_manager.cc b/runtime/oat_file_manager.cc
index 32de17486e..25ebaff7d5 100644
--- a/runtime/oat_file_manager.cc
+++ b/runtime/oat_file_manager.cc
@@ -278,7 +278,8 @@ std::vector<std::unique_ptr<const DexFile>> OatFileManager::OpenDexFilesFromOat(
image_space = gc::space::ImageSpace::CreateFromAppImage(
art_file.c_str(), oat_file.get(), &error_msg);
if (image_space == nullptr) {
- VLOG(image) << "Could not load runtime generated app image: " << error_msg;
+ (OS::FileExists(art_file.c_str()) ? LOG_STREAM(INFO) : VLOG_STREAM(image))
+ << "Could not load runtime generated app image: " << error_msg;
}
}
}