Project

Profile

Help

Issue #8499

Updated by bmbouter about 3 years ago

## Problem 

 Currently warnings are implemented with `warnings.warn` which is not being shown in the logs. 

 ## Fix 

 1. Instead we should convert all usage to `logging.warning`. 
 2. Update the [plugin writer docs](https://docs.pulpproject.org/pulpcore/plugins/plugin-writer/concepts/index.html#plugin-api-stability-and-deprecation-policy) also. 

 `#python` pointed me to [this interesting section of the docs](https://docs.python.org/3/howto/logging.html#when-to-use-logging) contrasting warning.warn() vs logging.warning().

Back