Replace print statements with logger calls across multiple files to improve logging consistency and flexibility.
Update libs/ape-common/ape/common/prompt/utils.py to use logger.warning for error handling
Modify libs/ape-core/ape/core/trainer/base.py to use logger.exception and logger.warning for error handling and retries
Update libs/ape-core/ape/core/trainer/expel_trainer.py to use logger.debug for various logging statements
Refactor libs/ape-core/ape/core/trainer/fewshot_trainer.py to use logger.debug for step completion logging
Update libs/ape-core/ape/core/trainer/text_gradient_trainer.py to use logger.debug and logger.warning for various logging statements
Modify libs/ape-core/ape/core/utils/init.py to use logger.error for nest_asyncio import error
Notes: This change improves the overall logging system by replacing print statements with proper logger calls. It allows for better control over log levels and output formatting, making it easier to manage and filter logs in different environments.
Replace print statements with logger calls across multiple files to improve logging consistency and flexibility.
Notes: This change improves the overall logging system by replacing print statements with proper logger calls. It allows for better control over log levels and output formatting, making it easier to manage and filter logs in different environments.