dump stack trace and don't return browser to pool on critical error where chrome process might still be running

This commit is contained in:
Noah Levitt 2014-05-30 23:07:39 -07:00
parent ed92f3bd53
commit 56a721f059

View File

@ -138,8 +138,9 @@ class AmqpBrowserController:
self.logger.info('browser={} client_id={} url={}'.format(browser, client_id, url))
try:
browser.browse_page(url, on_request=on_request)
finally:
self._browser_pool.release(browser)
except:
self.logger.critical("problem browsing page, may have lost browser process", exc_info=True)
import random
threadName = "BrowsingThread{}-{}".format(browser.chrome_port,