How to implement custom middle-ware?

asked 2015-12-03 09:35:40 -0500

I am new to Swift. I have install Swift server and now try to implement a custom middle ware using following doc

http://docs.openstack.org/developer/swift/development_middleware.html (http://docs.openstack.org/developer/s...)

But my middle-ware i.e. updateBody.py does not work. I upated proxy-server.conf file

pipeline = authtoken cache healthcheck keystoneauth updateBody proxy-logging proxy-server

[filter:updateBody] paste.filter_factory = swift.common.middleware.updateBody:updatefilter_factory

and put my middle-ware logic under /swift/common/middleware/updateBody.py

Please let me know if i am missing something and how can i debug this?

Thanks and Regards Kiran Singh

edit retag flag offensive close merge delete