From bfff214d1803ac845b1066057d40388b50589ba4 2016-08-01 15:32:35 From: Marcin Lulek Date: 2016-08-01 15:32:35 Subject: [PATCH] logging: fix logging for webhooks --- diff --git a/backend/src/appenlight/models/integrations/webhooks.py b/backend/src/appenlight/models/integrations/webhooks.py index 44cca5a..618ed12 100644 --- a/backend/src/appenlight/models/integrations/webhooks.py +++ b/backend/src/appenlight/models/integrations/webhooks.py @@ -69,10 +69,10 @@ class WebhooksClient(object): timeout=3) except Exception as e: raise IntegrationException( - _('Error communicating with Webhooks: %s').format(e)) + _('Error communicating with Webhooks: {}').format(e)) if resp.status_code > 299: raise IntegrationException( - 'Error communicating with Webhooks - status code: %s'.format( + 'Error communicating with Webhooks - status code: {}'.format( resp.status_code)) return resp