Deprecation warning messages are emitted continuously due to warning.simplefilter 'Always' option
Bug #1844462 reported by
Tushar Patil
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| glance_store |
Fix Released
|
Undecided
|
Asmita Singh | ||
Bug Description
Warning filter was enabled while fixing LP bug [1] and later when deprecation unused exceptions were removed, warning filter wasn't removed due to which when glance_store is used by other projects, it emits DeprecationWarning messages continuously even though it's expected that DeprecationWarning should be logged only once. I think this is happening because of the order of initialization of warning filter in glance_store in other projects (namely tacker).
I think warning filter should be removed from exceptions module [2] if not needed.
[1] : https:/
[2] : https:/
| Changed in glance-store: | |
| assignee: | nobody → Asmita Singh (asmita2018) |
| status: | New → In Progress |
To post a comment you must log in.

The deprecated unused exceptions were removed in patch https:/ /review. opendev. org/#/c/ 352563.