summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-02-28 10:08:36 -0800
committerRoshan Pius <rpius@google.com>2020-02-28 10:08:36 -0800
commit27bc9cd6b1fad0e157aa814e5ed9b5028313154e (patch)
tree618fe365666148a29b04896e7baa054326a2e067 /service
parent6569955c0a0699ceae00edea39de514c9a1d34af (diff)
WifiServiceImpl: Fix logging of API calls
Trigger API's should be logged regardless of verbosity. Also, fixed the log message on a couple of API's. Bug: 150236894 Test: Manual Change-Id: I7b73edcf2ea7cec0f6a79cb0ecdb1da7b1af20f0
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 f4d08454d..d9c6ce020 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());
}