summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-02-29 14:11:57 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-02-29 14:11:57 +0000
commitbc7f5d85c39ec679143a2598fbd4d4d5822537f1 (patch)
tree7526237d469a432d07aaf9e5fffa4422942fd107 /service
parent30d726af12855ec57d19f91c26f50f66086c3e8d (diff)
parent27bc9cd6b1fad0e157aa814e5ed9b5028313154e (diff)
Merge "WifiServiceImpl: Fix logging of API calls" into rvc-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiServiceImpl.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java
index 3b4e064f6..582d053a9 100644
--- a/service/java/com/android/server/wifi/WifiServiceImpl.java
+++ b/service/java/com/android/server/wifi/WifiServiceImpl.java
@@ -4022,9 +4022,7 @@ public class WifiServiceImpl extends BaseWifiService {
if (!isPrivileged(Binder.getCallingPid(), Binder.getCallingUid())) {
throw new SecurityException(TAG + ": Permission denied");
}
- if (mVerboseLoggingEnabled) {
- mLog.info("connect uid=%").c(Binder.getCallingUid()).flush();
- }
+ mLog.info("connect uid=%").c(Binder.getCallingUid()).flush();
mClientModeImpl.connect(
config, netId, binder, callback, callbackIdentifier, Binder.getCallingUid());
}
@@ -4039,9 +4037,7 @@ public class WifiServiceImpl extends BaseWifiService {
if (!isPrivileged(Binder.getCallingPid(), Binder.getCallingUid())) {
throw new SecurityException(TAG + ": Permission denied");
}
- if (mVerboseLoggingEnabled) {
- mLog.info("connect uid=%").c(Binder.getCallingUid()).flush();
- }
+ mLog.info("save uid=%").c(Binder.getCallingUid()).flush();
mClientModeImpl.save(
config, binder, callback, callbackIdentifier, Binder.getCallingUid());
}
@@ -4055,9 +4051,7 @@ public class WifiServiceImpl extends BaseWifiService {
if (!isPrivileged(Binder.getCallingPid(), Binder.getCallingUid())) {
throw new SecurityException(TAG + ": Permission denied");
}
- if (mVerboseLoggingEnabled) {
- mLog.info("connect uid=%").c(Binder.getCallingUid()).flush();
- }
+ mLog.info("forget uid=%").c(Binder.getCallingUid()).flush();
mClientModeImpl.forget(
netId, binder, callback, callbackIdentifier, Binder.getCallingUid());
}