Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 352 Bytes
class MyLoggingMiddleware(object):
def __init__(self, get_responce):
self.get_responce = get_responce
print("MyLogging Middleware init")
def __call__(self, request):
print("pre-call:{}".format(request))
responce = self.get_responce(request)
print("post-call:{}".format(request))
return responce