summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Joslin <jjoslin@google.com>2017-04-04 11:15:58 -0700
committerJeremy Joslin <jjoslin@google.com>2017-04-10 11:04:45 -0700
commited71d5209d66544a46a7dc543a0ee94e1be39eab (patch)
tree64ffbe09ea9692e4b6089b731055569a611b8be6
parent124d8a17ef2853554dafb64e28fe0a8b1204d6cd (diff)
Clarify a local log statement and reduce spam.
Fixed an incorrect key name in a log statement and reduced spam by only logging at verbose. Test: runtests.sh Bug: 36963842 Change-Id: I540879e8bbf0f788ff94357d1ea532a6eff14b03
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index 82ad5b986..d9f3c1a23 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -1304,8 +1304,10 @@ public class WifiConfigManager {
}
config.getNetworkSelectionStatus().setNotRecommended(notRecommended);
- localLog("updateNetworkRecommendation: configKey=" + config.configKey()
- + " recommended=" + notRecommended);
+ if (mVerboseLoggingEnabled) {
+ localLog("updateNetworkRecommendation: configKey=" + config.configKey()
+ + " notRecommended=" + notRecommended);
+ }
saveToStore(false);
return true;
}