Raise some log message priorities
This commit is contained in:
parent
96014a7365
commit
d04f26b6e4
@ -288,12 +288,12 @@ public class UpdateService extends IntentService implements ProgressListener {
|
|||||||
String sint = prefs.getString(Preferences.PREF_UPD_INTERVAL, "0");
|
String sint = prefs.getString(Preferences.PREF_UPD_INTERVAL, "0");
|
||||||
int interval = Integer.parseInt(sint);
|
int interval = Integer.parseInt(sint);
|
||||||
if (interval == 0) {
|
if (interval == 0) {
|
||||||
Log.d(TAG, "Skipping update - disabled");
|
Log.i(TAG, "Skipping update - disabled");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
long elapsed = System.currentTimeMillis() - lastUpdate;
|
long elapsed = System.currentTimeMillis() - lastUpdate;
|
||||||
if (elapsed < interval * 60 * 60 * 1000) {
|
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");
|
+ "ms ago, interval is " + interval + " hours");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -305,7 +305,7 @@ public class UpdateService extends IntentService implements ProgressListener {
|
|||||||
NetworkInfo.State wifi = conMan.getNetworkInfo(1).getState();
|
NetworkInfo.State wifi = conMan.getNetworkInfo(1).getState();
|
||||||
if (wifi != NetworkInfo.State.CONNECTED &&
|
if (wifi != NetworkInfo.State.CONNECTED &&
|
||||||
wifi != NetworkInfo.State.CONNECTING) {
|
wifi != NetworkInfo.State.CONNECTING) {
|
||||||
Log.d(TAG, "Skipping update - wifi not available");
|
Log.i(TAG, "Skipping update - wifi not available");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,7 @@ public class App extends ValueObject implements Comparable<App> {
|
|||||||
PackageManager.GET_META_DATA);
|
PackageManager.GET_META_DATA);
|
||||||
installerPackageLabel = installerAppInfo.loadLabel(pm);
|
installerPackageLabel = installerAppInfo.loadLabel(pm);
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
Log.d(TAG, e.getMessage());
|
Log.w(TAG, "Could not get app info", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (TextUtils.isEmpty(installerPackageLabel))
|
if (TextUtils.isEmpty(installerPackageLabel))
|
||||||
|
@ -189,7 +189,7 @@ public class SystemInstaller extends Installer {
|
|||||||
try {
|
try {
|
||||||
appInfo = mPm.getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES);
|
appInfo = mPm.getApplicationInfo(packageName, PackageManager.GET_UNINSTALLED_PACKAGES);
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
Log.d(TAG, "Failed to get ApplicationInfo for uninstalling");
|
Log.w(TAG, "Failed to get ApplicationInfo for uninstalling");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user