Show fully qualified store name in update_capabilities() logging
Current debug log in StoreCapability.update_capabilities() used the basic class name of store driver, but since different driver uses same class name - Store, so it doesn't make any senese for people who checks this log, who can't figure out which store the log was talking about. Change-Id: I4e22a3a84003909a66f5edaa6298c68e9fdb43e2 Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
This commit is contained in:
parent
c5eb4fc54d
commit
bd592d3e33
@ -21,6 +21,7 @@ import time
|
||||
|
||||
import enum
|
||||
from eventlet import tpool
|
||||
from oslo_utils import reflection
|
||||
|
||||
from glance_store import exceptions
|
||||
from glance_store import i18n
|
||||
@ -94,7 +95,7 @@ class StoreCapability(object):
|
||||
"storage capabilities. Please overwrite "
|
||||
"'update_capabilities' method of the store to "
|
||||
"implement updating logics if needed.") %
|
||||
self.__class__.__name__)
|
||||
reflection.get_class_name(self))
|
||||
|
||||
def is_capable(self, *capabilities):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user