Adding log information to events

This commit is contained in:
2015-01-18 17:19:39 -06:00
parent bd1b0b5e32
commit fd70bedc05
28 changed files with 204 additions and 41 deletions

View File

@@ -12,7 +12,8 @@ def call_threaded(func, *args, **kwargs):
func(*a, **k)
except TwythonRateLimitError:
pass
# except:
except:
logging.exception("Thread %d with function %r, args of %r, and kwargs of %r failed to run." % (threading.current_thread().ident, func, a, k))
# pass
thread = threading.Thread(target=new_func, args=args, kwargs=kwargs)
thread.daemon = True
@@ -21,7 +22,6 @@ def call_threaded(func, *args, **kwargs):
def stream_threaded(func, *args, **kwargs):
def new_func(*a, **k):
# global session
try:
func(**k)
except: