]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/api/logging.py
block queries with lots of one and two letter terms
[nominatim.git] / nominatim / api / logging.py
index d4dc68b7bc126e3fc9da339d89c86b640e91fb9f..5b6d0e4dbbc03573b643e88cba43a871d7bd038a 100644 (file)
@@ -109,7 +109,6 @@ class BaseLogger:
         # quoted correctly.
         sqlstr = re.sub(r'%(?!\()', '%%', sqlstr)
         sqlstr = re.sub(r'__\[POSTCOMPILE_([^]]*)\]', r'%(\1)s', sqlstr)
         # quoted correctly.
         sqlstr = re.sub(r'%(?!\()', '%%', sqlstr)
         sqlstr = re.sub(r'__\[POSTCOMPILE_([^]]*)\]', r'%(\1)s', sqlstr)
-        print(sqlstr)
         return sqlstr % params
 
 class HTMLLogger(BaseLogger):
         return sqlstr % params
 
 class HTMLLogger(BaseLogger):