tornadorpc icon indicating copy to clipboard operation
tornadorpc copied to clipboard

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

Open rbucker opened this issue 13 years ago • 0 comments

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.

rbucker avatar Jan 26 '12 21:01 rbucker