Unverified Commit 18346336 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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()