Skip to content

Commit

Permalink
#3376 logging tweaks and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 5, 2022
1 parent 665a2f9 commit 8d9fd5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xpra/net/quic/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def http3_response(code, headers=None, body=None):
web_root = self.xpra_server._www_dir
headers_dirs = self.xpra_server._http_headers_dirs
headers = may_reload_headers(headers_dirs)
log.info(f"req_path={req_path}, web_root={web_root}, scripts={scripts}, headers_dir={headers_dir}")
log(f"req_path={req_path}, web_root={web_root}, scripts={scripts}, headers_dir={headers_dirs}")
path = translate_path(req_path, web_root)
if not path or not os.path.exists(path):
await http3_response(404, headers, body=b"Path not found")
Expand Down Expand Up @@ -223,7 +223,7 @@ def make_protocol(*args, **kwargs):


def listen_quic(quic_sock, xpra_server=None):
log.info(f"listen_quic({quic_sock})")
log(f"listen_quic({quic_sock})")
qs = get_quic_server()
qs.listen(quic_sock, xpra_server)
return quic_sock.close
2 changes: 1 addition & 1 deletion xpra/net/socket_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def cleanup():
return cleanup
except Exception as e:
log("add_listen_socket%s", (socktype, sock, info, new_connection_cb, options), exc_info=True)
log.error("Error: failed to listen on %s socket %s:", socktype, info or sock)
log.error("Error: failed to listen on %s socket %s:", socktype, pretty_socket(info or sock))
log.estr(e)
return None

Expand Down

0 comments on commit 8d9fd5f

Please sign in to comment.