|
@@ -34,7 +34,6 @@ class ThreadBasedSession(Session):
|
|
curr = id(threading.current_thread())
|
|
curr = id(threading.current_thread())
|
|
session = cls.thread2session.get(curr)
|
|
session = cls.thread2session.get(curr)
|
|
if session is None:
|
|
if session is None:
|
|
- logger.debug("SessionNotFoundException in %s", threading.current_thread())
|
|
|
|
raise SessionNotFoundException(
|
|
raise SessionNotFoundException(
|
|
"Can't find current session. Maybe session closed. Did you forget to use `register_thread` ?")
|
|
"Can't find current session. Maybe session closed. Did you forget to use `register_thread` ?")
|
|
return session
|
|
return session
|