Skip to content

Commit

Permalink
add warn on retry
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzhak committed May 26, 2017
1 parent 0a2783f commit bccfa76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions botstory/integrations/fb/messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ async def send_image(self, recipient, url, options=None):
await self._send_image(recipient, url)
should_try = False
except commonhttp_errors.HttpRequestError:
logger.warning('# retry to send image {}'.format(url))
should_try = True
await asyncio.sleep(delay)

Expand Down

0 comments on commit bccfa76

Please sign in to comment.