Previously if any exceptions accidentally made their way to
eventlet.wsgi.server's response handler it would print their traceback.
We only want to show users tracebacks in debug mode. In production we
want them suppressed.
Fixes bug #
1222008
Change-Id: Ieb11f75ebffc67bd584432cfd8eeaac010fce7ca
cfg.CONF.register_group(api_cw_group)
cfg.CONF.register_opts(api_cw_opts,
group=api_cw_group)
+cfg.CONF.import_opt('debug', 'heat.openstack.common.log')
class WritableLogger(object):
self.application,
custom_pool=self.pool,
url_length_limit=URL_LENGTH_LIMIT,
- log=WritableLogger(self.logger))
+ log=WritableLogger(self.logger),
+ debug=cfg.CONF.debug)
except socket.error as err:
if err[0] != errno.EINVAL:
raise