Raise some log message priorities

This commit is contained in:
Daniel Martí 2015-08-20 18:58:41 -07:00
parent 96014a7365
commit d04f26b6e4
3 changed files with 5 additions and 5 deletions

View File

@ -288,12 +288,12 @@ public class UpdateService extends IntentService implements ProgressListener {
String sint = prefs.getString(Preferences.PREF_UPD_INTERVAL, "0");
int interval = Integer.parseInt(sint);
if (interval == 0) {
Log.d(TAG, "Skipping update - disabled");
Log.i(TAG, "Skipping update - disabled");
return false;
}
long elapsed = System.currentTimeMillis() - lastUpdate;
if (elapsed < interval * 60 * 60 * 1000) {
Log.d(TAG, "Skipping update - done " + elapsed
Log.i(TAG, "Skipping update - done " + elapsed
+ "ms ago, interval is " + interval + " hours");
return false;
}
@ -305,7 +305,7 @@ public class UpdateService extends IntentService implements ProgressListener {
NetworkInfo.State wifi = conMan.getNetworkInfo(1).getState();
if (wifi != NetworkInfo.State.CONNECTED &&
wifi != NetworkInfo.State.CONNECTING) {
Log.d(TAG, "Skipping update - wifi not available");
Log.i(TAG, "Skipping update - wifi not available");
return false;
}
}

View File

@ -241,7 +241,7 @@ public class App extends ValueObject implements Comparable<App> {
PackageManager.GET_META_DATA);
installerPackageLabel = installerAppInfo.loadLabel(pm);
} catch (PackageManager.NameNotFoundException e) {
Log.d(TAG, e.getMessage());
Log.w(TAG, "Could not get app info", e);
}
}
if (TextUtils.isEmpty(installerPackageLabel))

View File

@ -189,7 +189,7 @@ public class SystemInstaller extends Installer {
try {
appInfo = mPm.getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES);
} catch (PackageManager.NameNotFoundException e) {
Log.d(TAG, "Failed to get ApplicationInfo for uninstalling");
Log.w(TAG, "Failed to get ApplicationInfo for uninstalling");
return;
}