Skip to content

Commit

Permalink
Log exception when dogstatsd server fails to start. Fixes #480
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahandrews committed May 28, 2013
1 parent cd9d693 commit 8ca450d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dogstatsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ def run(self):
self.reporter.start()
try:
self.server.start()
except Exception:
log.exception('Error starting server')
finally:
# The server will block until it's done. Once we're here, shutdown
# the reporting thread.
Expand Down

0 comments on commit 8ca450d

Please sign in to comment.