Skip to content

Commit 03b3b12

Browse files
authored
Merge pull request #142 from bridadan/fix-debug-log-in-timeout
Fixing faulty log function calls
2 parents 9a3121e + 04fd297 commit 03b3b12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed_lstools/lstools_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def wrapper(self, *args):
3737
lock = InterProcessLock(self.lock_file)
3838
acquired = lock.acquire(blocking=False)
3939
if not acquired:
40-
self.debug("Waiting %d seconds for mock file lock." % timeout)
40+
self.debug("timed_mbedls_lock", "Waiting %d seconds for mock file lock." % timeout)
4141
acquired = lock.acquire(blocking=True, timeout=timeout)
4242
if acquired:
4343
try:
@@ -47,7 +47,7 @@ def wrapper(self, *args):
4747
raise e
4848
lock.release()
4949
else:
50-
self.err("Failed to acquired mock file lock in %d seconds!" % timeout)
50+
self.err("timed_mbedls_lock", "Failed to acquired mock file lock in %d seconds!" % timeout)
5151
sys.exit(1)
5252
return ret
5353

0 commit comments

Comments
 (0)