oslo.log/oslo_log/tests
Radomir Dopieralski b457dae5b6 Log deprecation message when catching deprecated exceptions
When an exception is being deprecated from a library, it is usually
not called anywhere in the user code -- instead it is only caught, so
we never get a chance to see the deprecation message. This patch uses
the fact that an except statement has to do a subclass check on the
exceptions it is trying to catch, and puts the logging code in the
subclass check hook. Unfortunately, that hook has to be defined on the
metaclass, which makes the code a little hard to understand.

Change-Id: Id3cb649343c8d32564e189aecb9aeebe572249cc
2015-04-28 14:42:14 +02:00
..
unit Log deprecation message when catching deprecated exceptions 2015-04-28 14:42:14 +02:00
__init__.py Move files out of the namespace package 2014-12-17 21:43:41 -05:00