joshmarshall / tornadorpc

Python libraries for XML/JSON RPC using the Tornado framework.
159 stars 36 forks source link

global name 'logging' is not defined (in base.py) #3

Open rbucker opened 12 years ago

rbucker commented 12 years ago

working from the latest committed on GH I'm getting an error when I mask my Handler function with @async.

File "/Users/rbucker/.virtualenvs/spotify/lib/python2.7/site-packages/tornadorpc/base.py", line 161, in dispatch
    logging.warning(message)
NameError: global name 'logging' is not defined

Note that on line 161 there is the call:

logging.warning(message)

however, you have not imported the logging global from either python or TornadoWeb.