Lgndr: Log function name using the decorator
This commit is contained in:
parent
dda1793890
commit
23716e40d8
|
@ -43,9 +43,9 @@ class LegendaryCLI(LegendaryCLIReal):
|
|||
def unlock_installed(func):
|
||||
@functools.wraps(func)
|
||||
def unlock(self, *args, **kwargs):
|
||||
self.logger.debug("Using unlock decorator")
|
||||
self.logger.debug("%s: Using unlock decorator", func.__name__)
|
||||
if not self.core.lgd.lock_installed():
|
||||
self.logger.info("Data is locked, trying to forcufully release it")
|
||||
self.logger.info("Data is locked, trying to forcefully release it")
|
||||
# self.core.lgd._installed_lock.release(force=True)
|
||||
try:
|
||||
ret = func(self, *args, **kwargs)
|
||||
|
|
|
@ -37,9 +37,9 @@ class LegendaryCore(LegendaryCoreReal):
|
|||
def unlock_installed(func):
|
||||
@functools.wraps(func)
|
||||
def unlock(self, *args, **kwargs):
|
||||
self.log.debug("Using unlock decorator")
|
||||
self.log.debug("%s: Using unlock decorator", func.__name__)
|
||||
if not self.lgd.lock_installed():
|
||||
self.log.info("Data is locked, trying to forcufully release it")
|
||||
self.log.info("Data is locked, trying to forcefully release it")
|
||||
# self.lgd._installed_lock.release(force=True)
|
||||
try:
|
||||
ret = func(self, *args, **kwargs)
|
||||
|
|
Loading…
Reference in a new issue