gnocchi-api running as WSGI application
I have following modified gnocchi-api to display detailed logs for debugging and analysis, it was working in Octata with custom gnocchi/rest/app.wsgi, now its deprecated as per https://gnocchi.xyz/releasenotes/4.0.html (https://gnocchi.xyz/releasenotes/4.0....), I am trying with following code in devstack master, but its not displaying the logs in __call__ now, am I missing something here?
#
from oslo_log import log as logging from gnocchi.cli import api LOG = logging.getLogger(__name__)
class GnocchiWsgiMiddleware(object): def __init__(self, app): self.app = app
def __call__(self,environ,start_response):
LOG.info("*******************")
return self.app(environ,start_response)
app = api.wsgi() application = GnocchiWsgiMiddleware(app)
##############################