﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32251	GEOSGeometry error logging when handling a GEOSException	Richard Boon	nobody	"When instantiating an invalid GEOSGeometry and catching the GEOSException, the logger still logs a GEOSException. I would expect no error logging when catching and handling the exception.
For example:

{{{
from django.contrib.gis.geos import GEOSGeometry, GEOSException
import logging

logger = logging.getLogger()
logger.setLevel(logging.DEBUG)

try:
    GEOSGeometry(""POLYGON ((20 30, 35 35, 30 20))"")
except GEOSException:
    pass
}}}

This will display the following error message:

`2020-12-09 10:03 ERROR GEOS_ERROR: IllegalArgumentException: Points of LinearRing do not form a closed linestring`

It seems that the logging happens here: https://github.com/django/django/blob/2c5d6dc44779448de1497f32c925c96975fae461/django/contrib/gis/geos/libgeos.py#L99
"	Uncategorized	closed	GIS	3.1	Normal	invalid	GEOSGeometry GEOSException logger		Unreviewed	0	0	0	0	0	0
