python-mapnik
python-mapnik copied to clipboard
set_severity(mapnik.severity_type.Error) dos not suppress warnings
When setting
mapnik.logger.set_severity(mapnik.severity_type.Error)
I still see warnings like
Mapnik LOG> 2020-05-10 10:41:58: warning: unable to find face-name 'No Such Font' in FontSet 'fontset1'
being written to stderr
Only when disabling logging completely with
mapnik.logger.set_severity(getattr(mapnik.severity_type, "None"))
warnings about missing fonts are no longer to be seen, but that suppresses more than I actually want ...
Tested with current v3.0.x branches of mapnik and python-mapnik, on Ubuntu 20.04 ...
Ok, this actually looks like a general Mapnik problem, not one specific to the Python bindings ...
closing here as it's actually an upstream problem