Skip to content

Commit 7353aa9

Browse files
authored
Merge pull request #3949 from hove-io/loglevel_changed
LogLevel changed for geojson autocomplete
2 parents 45bbb5a + 848725d commit 7353aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/jormungandr/jormungandr/interfaces/v1/serializer/geocode_json.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def get_places(self, obj):
293293
geocoding = feature.get('properties', {}).get('geocoding', {})
294294
type_ = geocoding.get('type')
295295
if not type_ or type_ not in map_serializer:
296-
logging.getLogger(__name__).error(
296+
logging.getLogger(__name__).debug(
297297
'Place not serialized (unknown type): type={place_type}, id= {id}'.format(
298298
place_type=geocoding.get("type"), id=geocoding.get("id")
299299
)
@@ -302,7 +302,7 @@ def get_places(self, obj):
302302
zone_type = geocoding.get('zone_type')
303303
# TODO: do something smart with other zone type
304304
if type_ == 'zone' and zone_type != 'city':
305-
logging.getLogger(__name__).error(
305+
logging.getLogger(__name__).debug(
306306
'Place not serialized (invalid zone type): zone_type={zone_type}, id= {id}'.format(
307307
zone_type=geocoding.get("zone_type"), id=geocoding.get("id")
308308
)

0 commit comments

Comments
 (0)