maplibre / flutter-maplibre-gl

Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
https://pub.dev/packages/maplibre_gl
Other
226 stars 125 forks source link

Abusive logging during the download of an offline region #212

Open mariusvn opened 1 year ago

mariusvn commented 1 year ago

When we download an offline region, there is so much log that it may considerably reduce the performances.

It is full of logs like that:

03-21 10:00:13.373 30892 30955 D Mbgl-HttpRequest: [HTTP] This request was cancelled (https://tile.openstreetmap.org/5/22/17.png). This is expected for tiles that were being prefetched but are no longer needed for the map to render.
03-21 10:00:13.374 30892 31133 V Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
03-21 10:00:13.375 30892 31140 V Mbgl-HttpRequest: [HTTP] Request was successful (code = 200).
m0nac0 commented 1 year ago

I'm pretty sure this is the standard logging behavior of the native Maplibre libraries, so there's not much we can do about this here.

JulianBissekkou commented 1 year ago

How about opening an issue on the native libraries and linking it here?