Closed kylebarron closed 4 years ago
👋 in #15 I've added logging https://github.com/cogeotiff/rio-tiler-mosaic/blob/8bddfac17df02911ab585e96ffc1ba4e7654a327/rio_tiler_mosaic/mosaic.py#L40-L42
would this be enough?
does logging.error
always get printed by default?
yeah, I'm not sure about that @kylebarron, I'll need to check
I think this is fixed in rio_tiler.mosaic
master
Here you catch all exceptions: https://github.com/cogeotiff/rio-tiler-mosaic/blob/d1add30c65b1ffd08dd82f58be67d5c8d001d7bf/rio_tiler_mosaic/mosaic.py#L30-L34
You should catch more detailed exceptions, i.e. only
TileOutsideBounds
. I was struggling to get output, and it turns out it was catching a Rasterio error, which should be shown to the user.