Skip to content

Commit

Permalink
logger.error -> logger.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ropable committed Oct 8, 2024
1 parent 75ac5b5 commit 754321a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prs2/referral/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def overdue_task_email():
return True


def wfs_getfeature(type_name, crs="EPSG:4326", cql_filter=None, max_features=50):
def wfs_getfeature(type_name, cql_filter=None, crs="EPSG:4326", max_features=50):
"""A utility function to perform a GetFeature request on a WFS endpoint
and return results as GeoJSON.
"""
Expand All @@ -330,7 +330,7 @@ def wfs_getfeature(type_name, crs="EPSG:4326", cql_filter=None, max_features=50)
except Exception as e:
logger = logging.getLogger("prs")
logger.warning(f"Exception during WFS getFeature request to {url}: {params}")
logger.error(e)
logger.warning(e)
# On exception, return an empty dict.
return {}

Expand All @@ -349,7 +349,7 @@ def query_caddy(q):
except Exception as e:
logger = logging.getLogger("prs")
logger.warning(f"Exception during query: {url}?q={q}")
logger.error(e)
logger.warning(e)
# On exception, return an empty list.
return []

Expand Down

0 comments on commit 754321a

Please sign in to comment.