Environment Details
Using logging library returns as an error for all log levels (warning, debug, info, error, critical) in production mode of Python tool. For example, the logging.info() statement is treated as an error in the production mode of Python tool. When interactive mode is used, this is shown as a warning which is what is expected. Even logging.warning() statement is treated as an error.
image.png
image.png
image.png
- Alteryx Designer
- Version(s): 2019, 2020, 2021
Cause
Defect GCSE-205 has been logged to address this.
Resolution
Solution 1: Workaround for Designer version < 2022.1
As a workaround, please use the interactive mode in the Python tool. Or, use the print() function if this is suitable.
Solution 2: Upgrade Designer version
This issue has been addressed in Designer version 2022.1.1. Please upgrade to this version.