This commit addresses issue #4314 by adding the ability to disable verbose
logging for Flow events.
Changes:
- Add verbose parameter to Flow.__init__() with support for True/False/None
- Add should_enable_verbose() utility function in logger_utils.py
- Support CREWAI_VERBOSE environment variable to globally control verbose output
- Fix ConsoleFormatter.print_panel() to respect verbose setting for all events
(previously flow events bypassed the verbose check)
- Update Crew class to use should_enable_verbose() for consistency
- Add comprehensive tests for the new verbose control feature
Usage:
- Set CREWAI_VERBOSE=false to disable all verbose logging globally
- Or pass verbose=False to Flow() or Crew() to disable for specific instances
- Explicit verbose parameter takes precedence over environment variable
Fixes#4314
Co-Authored-By: João <joao@crewai.com>