misc fixes

This commit is contained in:
ed 2022-11-28 20:25:32 +00:00
parent bd24bf9bae
commit d3fe19c5aa
3 changed files with 5 additions and 3 deletions

View file

@ -3149,7 +3149,7 @@ class HttpCli(object):
"url_suf": url_suf,
"logues": logues,
"readme": readme,
"title": html_escape(self.vpath, crlf=True),
"title": html_escape(self.vpath, crlf=True) or "⇆🎉",
"srv_info": srv_infot,
"dtheme": self.args.theme,
"themes": self.args.themes,

View file

@ -415,7 +415,9 @@ class HLog(logging.Handler):
else:
c = 1
if record.name == "pyftpdlib":
if record.name.startswith("PIL") and lv < logging.WARNING:
return
elif record.name == "pyftpdlib":
m = self.ptn_ftp.match(msg)
if m:
ip = m.group(1)

View file

@ -130,7 +130,7 @@ args = {
"ftps": ["pyftpdlib", "pyopenssl"],
},
"entry_points": {"console_scripts": ["copyparty = copyparty.__main__:main"]},
"scripts": ["bin/copyparty-fuse.py", "bin/up2k.py"],
"scripts": ["bin/partyfuse.py", "bin/up2k.py"],
"cmdclass": {"clean2": clean2},
}