rblib/bugs: do not warn about the failed UDD connection at every query

this is causing huge logs in recurring jobs that are filling the disk
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 34b18d54
......@@ -58,9 +58,9 @@ class Udd:
def query(self, query):
if not self._conn:
log.error('There has been an error connecting to UDD. '
log.debug('There has been an error connecting to UDD. '
'Look for a previous error for more information.')
log.error('Failing nicely, returning an empty response.')
log.debug('Failing nicely, returning an empty response.')
return []
try:
cursor = self._conn.cursor()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment