Skip to content

Commit fa62ecf

Browse files
committed
Add more logging
1 parent be4b058 commit fa62ecf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/InMemoryElevationProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public async Task Initialize()
6161
}
6262

6363
await Task.WhenAll(_initializationTaskPerLatLng.Values);
64+
_logger.LogInformation("Initialization complete.");
6465
}
6566

6667
/// <inheritdoc/>
@@ -72,6 +73,7 @@ public async Task<double[]> GetElevation(double[][] latLngs)
7273
var key = new Coordinate(Math.Floor(latLng[0]), Math.Floor(latLng[1]));
7374
if (_initializationTaskPerLatLng.ContainsKey(key) == false)
7475
{
76+
_logger.LogWarning($"Unable to find elevation file key: {key}, there are {_initializationTaskPerLatLng.Keys.Count} in the tasks list.");
7577
elevation.Add(0);
7678
continue;
7779
}

0 commit comments

Comments
 (0)