Browse Source

disable logging on a2s backend

master
gsd 2 years ago
parent
commit
ae23e799e4
  1. 2
      ext/python-a2s-rcon-api/service.py

2
ext/python-a2s-rcon-api/service.py

@ -8,6 +8,7 @@ from time import time
from pydantic import BaseModel
from RCONPlayerModel import *
import traceback
import logging
class A2S_request(BaseModel):
server: str = None
@ -41,6 +42,7 @@ class SourceBackend:
def run(self, host = "0.0.0.0", port = 45353):
import uvicorn
logging.getLogger("uvicorn.info").disabled = True
uvicorn.run(self.app, host = host, port = port)
def setup_routes(self):

Loading…
Cancel
Save