Skip to content

Commit a4b7b8d

Browse files
committed
fix: improve error logging in tools.py to include exception info
1 parent a84be67 commit a4b7b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def mcp_response_generator(chat_model, message_list, mcp_servers, mcp_output_ena
252252
except StopAsyncIteration:
253253
break
254254
except Exception as e:
255-
maxkb_logger.error(f'Exception: {e}', traceback.format_exc())
255+
maxkb_logger.error(f'Exception: {e}', exc_info=True)
256256
finally:
257257
loop.close()
258258

0 commit comments

Comments
 (0)