mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: improve error logging in tools.py to include exception info
This commit is contained in:
parent
a84be67d4d
commit
a4b7b8dbbb
|
|
@ -252,7 +252,7 @@ def mcp_response_generator(chat_model, message_list, mcp_servers, mcp_output_ena
|
|||
except StopAsyncIteration:
|
||||
break
|
||||
except Exception as e:
|
||||
maxkb_logger.error(f'Exception: {e}', traceback.format_exc())
|
||||
maxkb_logger.error(f'Exception: {e}', exc_info=True)
|
||||
finally:
|
||||
loop.close()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue