diff options
author | Zhi Yan Liu <zhiyanl@cn.ibm.com> | 2014-09-18 13:37:58 +0800 |
---|---|---|
committer | Zhi Yan Liu <lzy.dev@gmail.com> | 2014-09-19 11:19:34 +0000 |
commit | 03331b19f327234d7f8f060d0cd361b2e36330c1 (patch) | |
tree | e4d88e8a343598023846d2f65d6d1579ab9ff4ea /glance_store/_drivers/filesystem.py | |
parent | 7628f2bc56fa530b6d577d57c46a27916992b6b3 (diff) | |
download | glance_store-03331b19f327234d7f8f060d0cd361b2e36330c1.tar.gz |
Adding common.utils.exception_to_str() to avoid encoding issue
1. Ported common.utils.exception_to_str() back to glance_store.
2. Used exception_to_str() to consistently cast the exception to avoid
potential encoding issue.
Change-Id: I398ea0e218ebb37b9041cfe82f18b11e614662bf
Related-Id: I77478a8eeeefd85bf98138156429df53d0a4c079
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Diffstat (limited to 'glance_store/_drivers/filesystem.py')
-rw-r--r-- | glance_store/_drivers/filesystem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glance_store/_drivers/filesystem.py b/glance_store/_drivers/filesystem.py index 56e4ea6..372a06e 100644 --- a/glance_store/_drivers/filesystem.py +++ b/glance_store/_drivers/filesystem.py @@ -545,4 +545,4 @@ class Store(glance_store.driver.Store): except Exception as e: msg = _('Unable to remove partial image ' 'data for image %(iid)s: %(e)s') - LOG.error(msg % dict(iid=iid, e=e)) + LOG.error(msg % dict(iid=iid, e=utils.exception_to_str(e))) |