Remove duplicated take_action logging
This commit drops utils.log_method decorators. As a result of logging refactoring in openstackclient [1], utils.log_method decorator is no longer used in openstackclient and we are planning to drop utils.log_method. searchlightclient is the only project that uses log_method decorator. take_action logging is duplicated, so we can safely drop log_method decorator. Once this patch is merged, openstackclient can drop utils.log_method because there is no released searchlightclient. [1] https://review.openstack.org/#/q/topic:bug/1532294 Change-Id: Ib94e7ba77262a9a8cbfce71f3083c47cb1973364 Related-Bug: #1532294
This commit is contained in:
@@ -46,7 +46,6 @@ class ListFacet(lister.Lister):
|
|||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
@utils.log_method(log)
|
|
||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
self.log.debug("take_action(%s)", parsed_args)
|
self.log.debug("take_action(%s)", parsed_args)
|
||||||
|
|
||||||
|
@@ -24,7 +24,6 @@ class ListResourceType(lister.Lister):
|
|||||||
|
|
||||||
log = logging.getLogger(__name__ + ".ListResourceType")
|
log = logging.getLogger(__name__ + ".ListResourceType")
|
||||||
|
|
||||||
@utils.log_method(log)
|
|
||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
self.log.debug("take_action(%s)", parsed_args)
|
self.log.debug("take_action(%s)", parsed_args)
|
||||||
|
|
||||||
|
@@ -65,7 +65,6 @@ class SearchResource(lister.Lister):
|
|||||||
)
|
)
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
@utils.log_method(log)
|
|
||||||
def take_action(self, parsed_args):
|
def take_action(self, parsed_args):
|
||||||
self.log.debug("take_action(%s)", parsed_args)
|
self.log.debug("take_action(%s)", parsed_args)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user