Logging: add informative console logs for startup, ports, connections, JOIN/deny, input, and periodic events
- Configure logging via LOG_LEVEL env (default INFO) - Log when servers start listening (WT/QUIC/InMemory/HTTPS static) - Log WT CONNECT accept, QUIC peer connect, datagram traffic at DEBUG - Log GameServer creation, tick loop start, JOIN accept/deny, config_update broadcasts, and input reception
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import ssl
|
||||
import logging
|
||||
import threading
|
||||
from http.server import ThreadingHTTPServer, SimpleHTTPRequestHandler
|
||||
from pathlib import Path
|
||||
@@ -31,5 +32,5 @@ def start_https_static(host: str, port: int, certfile: str, keyfile: str, docroo
|
||||
|
||||
t = threading.Thread(target=httpd.serve_forever, name="https-static", daemon=True)
|
||||
t.start()
|
||||
logging.info("HTTPS static server listening on https://%s:%d serving '%s'", host, port, docroot_path)
|
||||
return httpd, t
|
||||
|
||||
|
||||
Reference in New Issue
Block a user