Replace error message with debug message

Trying to add an already added download is not error and it's
actually a way to mark an update as available online.
This commit is contained in:
Gabriele M
2017-07-07 22:05:23 +02:00
parent c90700d3d2
commit 89cb51e3dd

View File

@@ -317,7 +317,7 @@ public class UpdaterController implements UpdaterControllerInt {
private boolean addUpdate(final UpdateDownload update, boolean availableOnline) {
Log.d(TAG, "Adding download: " + update.getDownloadId());
if (mDownloads.containsKey(update.getDownloadId())) {
Log.e(TAG, "Download (" + update.getDownloadId() + ") already added");
Log.d(TAG, "Download (" + update.getDownloadId() + ") already added");
UpdateDownload updateAdded = mDownloads.get(update.getDownloadId()).mUpdate;
updateAdded.setAvailableOnline(availableOnline && updateAdded.getAvailableOnline());
return false;