Additional logging to help locate issue #6201
This commit is contained in:
parent
688d193803
commit
c9f1149906
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@ public class PerformLiveUpdateAsyncTask
|
||||||
final OsmandApplication myApplication = getMyApplication();
|
final OsmandApplication myApplication = getMyApplication();
|
||||||
OsmandSettings.CommonPreference<Long> lastCheckPreference =
|
OsmandSettings.CommonPreference<Long> lastCheckPreference =
|
||||||
LiveUpdatesHelper.preferenceLastCheck(localIndexFileName, myApplication.getSettings());
|
LiveUpdatesHelper.preferenceLastCheck(localIndexFileName, myApplication.getSettings());
|
||||||
|
LOG.debug(String.format("Last update check for %1s -> %2$d, current check time: %3$d", localIndexFileName, lastCheckPreference.get(), System.currentTimeMillis()));
|
||||||
lastCheckPreference.set(System.currentTimeMillis());
|
lastCheckPreference.set(System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,6 +92,7 @@ public class PerformLiveUpdateAsyncTask
|
||||||
iu.timestamp, iu.sizeText, iu.contentSize,
|
iu.timestamp, iu.sizeText, iu.contentSize,
|
||||||
iu.containerSize, DownloadActivityType.LIVE_UPDATES_FILE);
|
iu.containerSize, DownloadActivityType.LIVE_UPDATES_FILE);
|
||||||
itemsToDownload.add(indexItem);
|
itemsToDownload.add(indexItem);
|
||||||
|
LOG.debug(String.format("Filename %1$s -> server timestamp: %2$s, content size: %3$s", iu.fileName, iu.timestamp, iu.contentSize));
|
||||||
}
|
}
|
||||||
DownloadIndexesThread downloadThread = application.getDownloadThread();
|
DownloadIndexesThread downloadThread = application.getDownloadThread();
|
||||||
if (context instanceof DownloadIndexesThread.DownloadEvents) {
|
if (context instanceof DownloadIndexesThread.DownloadEvents) {
|
||||||
|
|
Loading…
Reference in a new issue