mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -06:00
up2k scanner messages less useless
This commit is contained in:
parent
5ae14cf9be
commit
1f170d7d28
|
@ -138,7 +138,7 @@ class Up2k(object):
|
||||||
try:
|
try:
|
||||||
inodes = [fsdec(x) for x in os.listdir(fsenc(cdir))]
|
inodes = [fsdec(x) for x in os.listdir(fsenc(cdir))]
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self.log("up2k", "listdir: " + repr(ex))
|
self.log("up2k", "listdir: {} @ [{}]".format(repr(ex), cdir))
|
||||||
return
|
return
|
||||||
|
|
||||||
histdir = os.path.join(top, ".hist")
|
histdir = os.path.join(top, ".hist")
|
||||||
|
@ -147,7 +147,7 @@ class Up2k(object):
|
||||||
try:
|
try:
|
||||||
inf = os.stat(fsenc(abspath))
|
inf = os.stat(fsenc(abspath))
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self.log("up2k", "stat: " + repr(ex))
|
self.log("up2k", "stat: {} @ [{}]".format(repr(ex), abspath))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if stat.S_ISDIR(inf.st_mode):
|
if stat.S_ISDIR(inf.st_mode):
|
||||||
|
@ -182,7 +182,7 @@ class Up2k(object):
|
||||||
try:
|
try:
|
||||||
hashes = self._hashlist_from_file(abspath)
|
hashes = self._hashlist_from_file(abspath)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self.log("up2k", "hash: " + repr(ex))
|
self.log("up2k", "hash: {} @ [{}]".format(repr(ex), abspath))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
wark = self._wark_from_hashlist(inf.st_size, hashes)
|
wark = self._wark_from_hashlist(inf.st_size, hashes)
|
||||||
|
@ -204,7 +204,7 @@ class Up2k(object):
|
||||||
if not os.path.exists(fsenc(abspath)):
|
if not os.path.exists(fsenc(abspath)):
|
||||||
rm.append(drp)
|
rm.append(drp)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self.log("up2k", "stat-rm: " + repr(ex))
|
self.log("up2k", "stat-rm: {} @ [{}]".format(repr(ex), abspath))
|
||||||
|
|
||||||
if not rm:
|
if not rm:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue