Explorar o código

hypercorn_config.toml
配置文件修改

罗俊辉 hai 1 ano
pai
achega
779bdc4b3b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      hypercorn_config.toml

+ 3 - 0
hypercorn_config.toml

@@ -3,3 +3,6 @@ bind = "0.0.0.0:8111"
 workers = 2
 keep_alive_timeout = 60  # 保持连接的最大秒数,根据需要调整
 graceful_timeout = 30    # 重启或停止之前等待当前工作完成的时间
+loglevel = "debug"  # 日志级别
+accesslog = "access.log"  # 访问日志文件
+errorlog = "error.log"  # 错误日志文件