mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-07 05:07:54 +02:00
more debug logging
This commit is contained in:
@@ -53,6 +53,7 @@ class MapDataProvider {
|
||||
required int y,
|
||||
MapSource source = MapSource.auto,
|
||||
}) async {
|
||||
print('[MapDataProvider] getTile called for $z/$x/$y');
|
||||
if (_offlineMode && source != MapSource.local) {
|
||||
throw OfflineModeException("Cannot fetch remote tiles in offline mode.");
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ Future<List<int>> fetchOSMTile({
|
||||
];
|
||||
while (true) {
|
||||
try {
|
||||
print('[fetchOSMTile] FETCH $z/$x/$y');
|
||||
attempt++;
|
||||
final resp = await http.get(Uri.parse(url));
|
||||
if (resp.statusCode == 200) {
|
||||
|
||||
Reference in New Issue
Block a user