From fff6e00e5f11aa444e046e2c6b4124cf45b0ce43 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Wed, 3 Apr 2013 15:15:34 +0200 Subject: [PATCH] reduce log-level for missing keys --- sloth/items/items.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sloth/items/items.py b/sloth/items/items.py index 3aff0d8..40f5b83 100644 --- a/sloth/items/items.py +++ b/sloth/items/items.py @@ -306,7 +306,7 @@ class PointItem(BaseItem): point = QPointF(float(self._model_item[self.prefix() + 'x']), float(self._model_item[self.prefix() + 'y'])) except KeyError as e: - LOG.error("PointItem: Could not find expected key in item: " + LOG.debug("PointItem: Could not find expected key in item: " + str(e) + ". Check your config!") self.setValid(False) self._point = None @@ -378,7 +378,7 @@ class RectItem(BaseItem): float(model_item[self.prefix() + 'width']), float(model_item[self.prefix() + 'height'])) except KeyError as e: - LOG.error("RectItem: Could not find expected key in item: " + LOG.debug("RectItem: Could not find expected key in item: " + str(e) + ". Check your config!") self.setValid(False) return QRectF() @@ -507,7 +507,7 @@ class MultiPointItem(BaseItem): try: return model_item[self.prefix()] except KeyError as e: - LOG.error("MultiPointItem: Could not find expected key in item: " + LOG.debug("MultiPointItem: Could not find expected key in item: " + str(e) + ". Check your config!") self.setValid(False) return QRectF()