diff --git a/dogstatsd.py b/dogstatsd.py index 3c58a53508..22b8898734 100755 --- a/dogstatsd.py +++ b/dogstatsd.py @@ -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.