Problem/Motivation
A provider failure logs the provider's error message. That message can include part of the API key: OpenAI echoes a wrong key, and a masked form of a real one.
Steps to reproduce
- Set a wrong API key on the provider.
- Generate an image.
- Read the ai_media entry in Recent log messages.
Proposed resolution
Log a fixed text with the operation and the exception class, without the provider message.
Before (1.0.x): the ai_media entry in Recent log messages carries the provider's text, with the key (a fake test key here).

After: the entry names the operation and the exception class only.

Remaining tasks
- ✅ File an issue
- ❌ Addition/Change/Update/Fix
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support
- ➖ User Guide Documentation support
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ✅ Update Release Notes
- ✅ Release
User interface changes
API changes
Data model changes
Release notes snippet
AI-Generated: Yes
Comments
Comment #4
rajab natshahComment #5
rajab natshah✅ Released ai_media-1.0.0-rc1