Commit 5e11a293 authored by Calin Juravle's avatar Calin Juravle
Browse files

Revert "nativebrige: log code_cache access errors to stderr as well"

This reverts commit 6d501780.

Bug: 26675310

Change-Id: Id56b5e832c85f01fca0a2198499d24224c5a6878
parent 6d501780
...@@ -413,19 +413,14 @@ bool InitializeNativeBridge(JNIEnv* env, const char* instruction_set) { ...@@ -413,19 +413,14 @@ bool InitializeNativeBridge(JNIEnv* env, const char* instruction_set) {
if (errno == ENOENT) { if (errno == ENOENT) {
if (mkdir(app_code_cache_dir, S_IRWXU | S_IRWXG | S_IXOTH) == -1) { if (mkdir(app_code_cache_dir, S_IRWXU | S_IRWXG | S_IXOTH) == -1) {
ALOGW("Cannot create code cache directory %s: %s.", app_code_cache_dir, strerror(errno)); ALOGW("Cannot create code cache directory %s: %s.", app_code_cache_dir, strerror(errno));
fprintf(stderr, "Cannot create code cache directory %s: %s.",
app_code_cache_dir, strerror(errno));
ReleaseAppCodeCacheDir(); ReleaseAppCodeCacheDir();
} }
} else { } else {
ALOGW("Cannot stat code cache directory %s: %s.", app_code_cache_dir, strerror(errno)); ALOGW("Cannot stat code cache directory %s: %s.", app_code_cache_dir, strerror(errno));
fprintf(stderr, "Cannot stat code cache directory %s: %s.",
app_code_cache_dir, strerror(errno));
ReleaseAppCodeCacheDir(); ReleaseAppCodeCacheDir();
} }
} else if (!S_ISDIR(st.st_mode)) { } else if (!S_ISDIR(st.st_mode)) {
ALOGW("Code cache is not a directory %s.", app_code_cache_dir); ALOGW("Code cache is not a directory %s.", app_code_cache_dir);
fprintf(stderr, "Code cache is not a directory %s.", app_code_cache_dir);
ReleaseAppCodeCacheDir(); ReleaseAppCodeCacheDir();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment