-
When I ask question to my agent It throws a lot of Loggs and then the answer at the end I want to stop these logs and only want clean resposne. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hey @xajeel you can easily disable those verbose logs and get clean responses. The logging is controlled by a global debug setting that has 3 levels:
How to disableOption 1: Programmatic (Recommended)Add this line at the top of your script: import mcp_use
mcp_use.set_debug(0) # Disables debug logs completelyOption 2: Environment VariableRun your script with: DEBUG=0 python your_script.pyOption 3: Remove Existing Debug LinesIf you copied from # mcp_use.set_debug(debug=1) # Remove or comment this lineWhere This is Set GloballyThe debug setting is defined in
|
Beta Was this translation helpful? Give feedback.
-
This is the line in I have removed the line now its working fine |
Beta Was this translation helpful? Give feedback.



Hey @xajeel you can easily disable those verbose logs and get clean responses.
The logging is controlled by a global debug setting that has 3 levels:
How to disable
Option 1: Programmatic (Recommended)
Add this line at the top of your script:
Option 2: Environment Variable
Run your script with:
Option 3: Remove Existing Debug Lines
If you copied from
examples/sandbox_everything.py, just comment out:# mcp_use.set_debug(debug=1) # Remove or …