From 1f170d7d2863b7675f6b38922ab36efd3de735e8 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 12 Feb 2021 07:04:35 +0000 Subject: [PATCH] up2k scanner messages less useless --- copyparty/up2k.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/copyparty/up2k.py b/copyparty/up2k.py index 55deea5e..1cd3ff67 100644 --- a/copyparty/up2k.py +++ b/copyparty/up2k.py @@ -138,7 +138,7 @@ class Up2k(object): try: inodes = [fsdec(x) for x in os.listdir(fsenc(cdir))] except Exception as ex: - self.log("up2k", "listdir: " + repr(ex)) + self.log("up2k", "listdir: {} @ [{}]".format(repr(ex), cdir)) return histdir = os.path.join(top, ".hist") @@ -147,7 +147,7 @@ class Up2k(object): try: inf = os.stat(fsenc(abspath)) except Exception as ex: - self.log("up2k", "stat: " + repr(ex)) + self.log("up2k", "stat: {} @ [{}]".format(repr(ex), abspath)) continue if stat.S_ISDIR(inf.st_mode): @@ -182,7 +182,7 @@ class Up2k(object): try: hashes = self._hashlist_from_file(abspath) except Exception as ex: - self.log("up2k", "hash: " + repr(ex)) + self.log("up2k", "hash: {} @ [{}]".format(repr(ex), abspath)) continue wark = self._wark_from_hashlist(inf.st_size, hashes) @@ -204,7 +204,7 @@ class Up2k(object): if not os.path.exists(fsenc(abspath)): rm.append(drp) except Exception as ex: - self.log("up2k", "stat-rm: " + repr(ex)) + self.log("up2k", "stat-rm: {} @ [{}]".format(repr(ex), abspath)) if not rm: return