Skip to content

Instantly share code, notes, and snippets.

View cjhgo's full-sized avatar
🎯
Focusing

cjhgo

🎯
Focusing
View GitHub Profile
import functools
def log(func):
@functools.wraps(func)
def wrapper(*args):
print(u"request body: {}".format(args[0]))
response = func(*args)
print u"response body: {}".format(response)
return response