From e78aa57598d9ea0fac64e36534db86bba477c512 Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Sun, 26 May 2024 21:30:38 -0700 Subject: [PATCH] [python] Avoid nested logging exception (#1968) --- engines/python/setup/djl_python_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/python/setup/djl_python_engine.py b/engines/python/setup/djl_python_engine.py index c26fb408d..404070ac3 100644 --- a/engines/python/setup/djl_python_engine.py +++ b/engines/python/setup/djl_python_engine.py @@ -125,7 +125,7 @@ def run_server(self): outputs = Output().error( f"Invalid output type: {type(outputs)}") except Exception as e: - logging.exception("Failed invoke service.invoke_handler()", e) + logging.exception("Failed invoke service.invoke_handler()") if type(e).__name__ == "OutOfMemoryError" or type( e).__name__ == "MemoryError": outputs = Output(code=507, message=str(e))