mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
utils: Avoid pylint warning
pylint warns: Use lazy % formatting in logging functions Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jose A. Rivera <jarrpa@samba.org> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Tue Jul 20 05:29:18 UTC 2021 on sn-devel-184
This commit is contained in:
parent
319e27343d
commit
b724c1e6a6
@ -178,7 +178,7 @@ def main():
|
||||
set(etcd_client_params).intersection(etcd_config)})
|
||||
lock = etcd.Lock(client, etcd_config['locks_dir'] + "/" + nb_name)
|
||||
lock._uuid = lock._uuid + "_" + pnn
|
||||
logging.debug("Updated lock UUID: " + lock.uuid)
|
||||
logging.debug("Updated lock UUID: %s", lock.uuid)
|
||||
ppid = os.getppid()
|
||||
while True:
|
||||
lock.acquire(blocking=False, lock_ttl=etcd_config['lock_ttl'])
|
||||
@ -193,7 +193,7 @@ def main():
|
||||
locks += '\n '.join(
|
||||
(child.key + ": " + child.value for child in
|
||||
keys.children))
|
||||
logging.debug("Lock contention. " + locks)
|
||||
logging.debug("Lock contention. %s", locks)
|
||||
print_nonl(1)
|
||||
break
|
||||
os.kill(ppid, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user