keystone/keystone/hacking
Doug Hellmann a77b014572 Log exceptions safely
The Python standard library logging module expects to be given a string
as the first argument to all of the log methods. If it receives
something that is not a string, it tries to convert it to a string. The
old logging ContextAdapter dealt with this transparently by using
unicode(), but oslo.log on longer uses the ContextAdapter. Since the
underlying code is using the equivalent of str(), we need to pass real
string objects in to the log calls, instead of passing just exception
objects.

Change-Id: I0bc3b1e9761441178cb5400559c6a84a6fb33f06
2015-02-13 02:24:34 -05:00
..
__init__.py Adds style checks to ease reviewer burden 2014-04-09 23:34:45 +00:00
checks.py Log exceptions safely 2015-02-13 02:24:34 -05:00