1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

Lgndr: Log function name using the decorator

This commit is contained in:
loathingKernel 2023-12-13 15:53:17 +02:00
parent dda1793890
commit 23716e40d8
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)