diff options
| author | Robert Greenwalt <rgreenwalt@google.com> | 2010-10-08 16:35:52 -0700 |
|---|---|---|
| committer | Wink Saville <wink@google.com> | 2010-10-10 11:26:41 -0700 |
| commit | 572172befbdf020e96ee4b10506b2b7cd5f1a09b (patch) | |
| tree | 476ccd952fa62ed65c41fa849c4a33f2705e89d7 | |
| parent | d14230f1c7aa5073db9d291f8fbd6da5491955b9 (diff) | |
| download | frameworks_base-572172befbdf020e96ee4b10506b2b7cd5f1a09b.zip frameworks_base-572172befbdf020e96ee4b10506b2b7cd5f1a09b.tar.gz frameworks_base-572172befbdf020e96ee4b10506b2b7cd5f1a09b.tar.bz2 | |
Add some error-case logging.
Turning off all debug logging is a good thing, but it leaves us blind when errors come in.
bug:3075537
Change-Id: I8a4e7f2ce094574ec45cec268bdbc46449540c9f
| -rw-r--r-- | services/java/com/android/server/ConnectivityService.java | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index 8114be9..a663c3a 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -1038,10 +1038,8 @@ public class ConnectivityService extends IConnectivityManager.Stub { if (mNetAttributes[checkType] == null) continue; if (mNetAttributes[checkType].mRadio == ConnectivityManager.TYPE_MOBILE && noMobileData) { - if (DBG) { - Slog.d(TAG, "not failing over to mobile type " + checkType + - " because Mobile Data Disabled"); - } + Slog.e(TAG, "not failing over to mobile type " + checkType + + " because Mobile Data Disabled"); continue; } if (mNetAttributes[checkType].isDefault()) { @@ -1089,6 +1087,8 @@ public class ConnectivityService extends IConnectivityManager.Stub { newNet = null; // not officially avail.. try anyway, but // report no failover } + } else { + Slog.e(TAG, "Network failover failing."); } } @@ -1131,16 +1131,13 @@ public class ConnectivityService extends IConnectivityManager.Stub { String reason = info.getReason(); String extraInfo = info.getExtraInfo(); - if (DBG) { - String reasonText; - if (reason == null) { - reasonText = "."; - } else { - reasonText = " (" + reason + ")."; - } - Slog.v(TAG, "Attempt to connect to " + info.getTypeName() + - " failed" + reasonText); + String reasonText; + if (reason == null) { + reasonText = "."; + } else { + reasonText = " (" + reason + ")."; } + Slog.e(TAG, "Attempt to connect to " + info.getTypeName() + " failed" + reasonText); Intent intent = new Intent(ConnectivityManager.CONNECTIVITY_ACTION); intent.putExtra(ConnectivityManager.EXTRA_NETWORK_INFO, info); @@ -1164,9 +1161,9 @@ public class ConnectivityService extends IConnectivityManager.Stub { if (newNet != null) { NetworkInfo switchTo = newNet.getNetworkInfo(); if (!switchTo.isConnected()) { - // if the other net is connected they've already reset this and perhaps even gotten - // a positive report we don't want to overwrite, but if not we need to clear this now - // to turn our cellular sig strength white + // if the other net is connected they've already reset this and perhaps + // even gotten a positive report we don't want to overwrite, but if not + // we need to clear this now to turn our cellular sig strength white mDefaultInetConditionPublished = 0; } intent.putExtra(ConnectivityManager.EXTRA_OTHER_NETWORK_INFO, switchTo); |
