Misc logging cleanup

This commit is contained in:
Brett Williams
2024-08-05 10:57:56 -05:00
parent 4df41a2079
commit 90d5e9b7af
4 changed files with 31 additions and 18 deletions

View File

@@ -498,6 +498,13 @@ def start_server():
time.sleep(delay_sec)
try:
Config.setup_config_dir()
Config.load_config(system_safe_path(os.path.join(Config.config_dir(), 'config.yaml')))
# suppress requests logging
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
# get hostname
local_hostname = socket.gethostname()
local_hostname = local_hostname + (".local" if not local_hostname.endswith(".local") else "")