Skip to content

Commit

Permalink
Merge pull request #519 from DataDog/480-log-dostatsd-port-error
Browse files Browse the repository at this point in the history
Log exception when dogstatsd server fails to start. Fixes #480
  • Loading branch information
elijahandrews committed May 30, 2013
2 parents c3c208d + 98e17be commit db3cd73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dogstatsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ def run(self):
signal.signal(signal.SIGINT, self._handle_sigterm)
self.reporter.start()
try:
self.server.start()
try:
self.server.start()
except Exception, e:
log.exception('Error starting server')
raise e
finally:
# The server will block until it's done. Once we're here, shutdown
# the reporting thread.
Expand Down

0 comments on commit db3cd73

Please sign in to comment.