more debug logging

This commit is contained in:
stopflock
2025-08-09 14:04:31 -05:00
parent 3dca7d5751
commit 7f91d5aec4
3 changed files with 6 additions and 2 deletions
+1
View File
@@ -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) {