joshmarshall / tornadorpc

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

import logging #5

Closed ajdavis closed 10 years ago

ajdavis commented 11 years ago

Avoid this error when an async method returns non-None:

    Traceback (most recent call last):
      File "/Users/emptysquare/.virtualenvs/motor-blog/lib/python2.7/site-packages/tornado/web.py", line 1055, in _stack_context_handle_exception
        raise_exc_info((type, value, traceback))
      File "/Users/emptysquare/.virtualenvs/motor-blog/lib/python2.7/site-packages/tornado/web.py", line 1178, in wrapper
        result = method(self, *args, **kwargs)
      File "/Users/emptysquare/.virtualenvs/motor-blog/lib/python2.7/site-packages/tornadorpc/base.py", line 259, in post
        self._RPC_.run(self, request_body)
      File "/Users/emptysquare/.virtualenvs/motor-blog/lib/python2.7/site-packages/tornadorpc/base.py", line 103, in run
        self.dispatch(request[0], request[1])
      File "/Users/emptysquare/.virtualenvs/motor-blog/lib/python2.7/site-packages/tornadorpc/base.py", line 161, in dispatch
        logging.warning(message)
    NameError: global name 'logging' is not defined
joshmarshall commented 10 years ago

Hi @ajdavis - I apologize, I was out of it for a while here on Github on some of my projects.

I put this in the most recent push, I'm going to go ahead and close this. If you are still using this library, let me know if you have any other issues. Thanks!

ajdavis commented 10 years ago

Thanks!