python-mapnik icon indicating copy to clipboard operation
python-mapnik copied to clipboard

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

Open hholzgra opened this issue 5 years ago • 2 comments

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 avatar May 10 '20 11:05 hholzgra

test-226.tar.gz

hholzgra avatar May 10 '20 11:05 hholzgra

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

hholzgra avatar May 10 '20 11:05 hholzgra

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

hholzgra avatar Oct 03 '22 23:10 hholzgra

closing here as it's actually an upstream problem

hholzgra avatar Oct 04 '22 00:10 hholzgra