Change fallback log to verbose am: f2effd1063 am: 6824eaebd3 am: 6174b38774 am: 3bfcf06b5c
Original change: https://android-review.googlesource.com/c/platform/system/tools/sysprop/+/1624460
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I933638036a192448ea88cd8effdb31324033280e
diff --git a/CppGen.cpp b/CppGen.cpp
index e91d03c..58efde2 100644
--- a/CppGen.cpp
+++ b/CppGen.cpp
@@ -225,7 +225,7 @@
value = android::base::GetProperty(key, "");
#endif
if (value.empty() && legacy) {
- ALOGD("prop %s doesn't exist; fallback to legacy prop %s", key, legacy);
+ ALOGV("prop %s doesn't exist; fallback to legacy prop %s", key, legacy);
return GetProp<T>(legacy);
}
return TryParse<T>(value.c_str());
diff --git a/JavaGen.cpp b/JavaGen.cpp
index c677163..c2cdaeb 100644
--- a/JavaGen.cpp
+++ b/JavaGen.cpp
@@ -428,7 +428,7 @@
writer.Write("if (\"\".equals(value)) {\n");
writer.Indent();
writer.Write(
- "Log.d(\"%s\", \"prop %s doesn't exist; fallback to legacy prop "
+ "Log.v(\"%s\", \"prop %s doesn't exist; fallback to legacy prop "
"%s\");\n",
class_name.c_str(), prop.prop_name().c_str(),
prop.legacy_prop_name().c_str());
diff --git a/tests/CppGenTest.cpp b/tests/CppGenTest.cpp
index e856900..8deb780 100644
--- a/tests/CppGenTest.cpp
+++ b/tests/CppGenTest.cpp
@@ -438,7 +438,7 @@
value = android::base::GetProperty(key, "");
#endif
if (value.empty() && legacy) {
- ALOGD("prop %s doesn't exist; fallback to legacy prop %s", key, legacy);
+ ALOGV("prop %s doesn't exist; fallback to legacy prop %s", key, legacy);
return GetProp<T>(legacy);
}
return TryParse<T>(value.c_str());
diff --git a/tests/JavaGenTest.cpp b/tests/JavaGenTest.cpp
index 69a9807..6ae0474 100644
--- a/tests/JavaGenTest.cpp
+++ b/tests/JavaGenTest.cpp
@@ -275,7 +275,7 @@
public static Optional<String> test_string() {
String value = SystemProperties.get("vendor.test.string");
if ("".equals(value)) {
- Log.d("TestProperties", "prop vendor.test.string doesn't exist; fallback to legacy prop vendor.old.string");
+ Log.v("TestProperties", "prop vendor.test.string doesn't exist; fallback to legacy prop vendor.old.string");
value = SystemProperties.get("vendor.old.string");
}
return Optional.ofNullable(tryParseString(value));
@@ -504,7 +504,7 @@
public static Optional<String> test_string() {
String value = SystemProperties.get("vendor.test.string");
if ("".equals(value)) {
- Log.d("TestProperties", "prop vendor.test.string doesn't exist; fallback to legacy prop vendor.old.string");
+ Log.v("TestProperties", "prop vendor.test.string doesn't exist; fallback to legacy prop vendor.old.string");
value = SystemProperties.get("vendor.old.string");
}
return Optional.ofNullable(tryParseString(value));