X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a413aae8a3962be4d623844d867604df68a9a211..42631b85c7445b3acae9d907330fd2544f3366a1:/nominatim/api/core.py diff --git a/nominatim/api/core.py b/nominatim/api/core.py index a9fc1243..8d503fa5 100644 --- a/nominatim/api/core.py +++ b/nominatim/api/core.py @@ -66,7 +66,8 @@ class NominatimAPIAsync: username=dsn.get('user'), password=dsn.get('password'), host=dsn.get('host'), port=int(dsn['port']) if 'port' in dsn else None, query=query) - engine = sa_asyncio.create_async_engine(dburl, future=True) + engine = sa_asyncio.create_async_engine(dburl, future=True, + echo=self.config.get_bool('DEBUG_SQL')) try: async with engine.begin() as conn: