summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-09-07 14:15:28 -0700
committer Alex Light <allight@google.com> 2017-09-21 16:42:30 -0700
commit91842aebfa418f5efad8933a9d79db097f079246 (patch)
tree71ec195627932114f515cffc4fb1933dfc59b3d6
parentf4ef5c6e2554c904ef9c088de9a63ae8b7c854e4 (diff)
Lower PLOG(ERROR) to PLOG(WARNING) if unable to find realpath
We were emitting a PLOG(ERROR) from class_loader_context if we are unable to find the dex-files realpath. This is an issue because InMemoryDexClassLoader and some --redefine-stress tests cause this message to be printed, making the test fail. This also brings it more into line with other logs in this file. Test: ./test/run-test --host --jvmti-redefine-stress 071 Change-Id: Idc21bf89be02ca9263fbec7f28fdf036196ab58c
-rw-r--r--runtime/class_loader_context.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_loader_context.cc b/runtime/class_loader_context.cc
index 3bd45966e4..2282da048f 100644
--- a/runtime/class_loader_context.cc
+++ b/runtime/class_loader_context.cc
@@ -220,7 +220,7 @@ bool ClassLoaderContext::OpenDexFiles(InstructionSet isa, const std::string& cla
// If we can't get the realpath of the location there might be something wrong with the
// classpath (maybe the file was deleted).
// Do not continue in this case and return false.
- PLOG(ERROR) << "Could not get the realpath of dex location " << raw_location;
+ PLOG(WARNING) << "Could not get the realpath of dex location " << raw_location;
return false;
}