Commit f4a96ddb authored by Matias Guijarro's avatar Matias Guijarro
Browse files

fix issue #2850

parent 348e90a8
......@@ -358,6 +358,8 @@ class BlissRepl(NoThreadPythonRepl, metaclass=Singleton):
# NB: next methods are overloaded
##
async def eval_async(self, text):
logging.getLogger("user_input").info(text)
elogbook.command(text)
with self.app.output.capture_stdout:
result = await super().eval_async(text)
if result is None:
......@@ -368,8 +370,6 @@ class BlissRepl(NoThreadPythonRepl, metaclass=Singleton):
try:
if hasattr(result, "__info__"):
result = Info(result)
logging.getLogger("user_input").info(result)
elogbook.command(result)
except BaseException:
# display exception, but do not propagate and make shell to die
sys.excepthook(*sys.exc_info())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment