mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
157 stars 91 forks source link

set_severity(mapnik.severity_type.Error) dos not suppress warnings #226

Closed hholzgra closed 1 year ago

hholzgra commented 4 years ago

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 ...

hholzgra commented 4 years ago

test-226.tar.gz

hholzgra commented 4 years ago

Tested with current v3.0.x branches of mapnik and python-mapnik, on Ubuntu 20.04 ...

hholzgra commented 1 year ago

Ok, this actually looks like a general Mapnik problem, not one specific to the Python bindings ...

hholzgra commented 1 year ago

closing here as it's actually an upstream problem