server.py: onTick добавлен в ignore лист логирования
This commit is contained in:
@@ -253,14 +253,15 @@ class Server:
|
||||
playerid = next((key for key, values in cls._registered_clients.items() if connection in values), None)
|
||||
if playerid is not None: kwargs['playerid'] = playerid
|
||||
asyncio.create_task(call_event(event, **kwargs))
|
||||
logger.info(
|
||||
'Получено сообщение от сервера' if connection == cls._server_connection else 'Получено сообщение от клиента',
|
||||
log_type = 'PyG2O',
|
||||
connection = f"{connection.client.host}:{connection.client.port}",
|
||||
message_event = event,
|
||||
message_uuid = uuid,
|
||||
message_data = kwargs,
|
||||
)
|
||||
if (event != 'onTick' and event != 'onTime'):
|
||||
logger.info(
|
||||
'Получено сообщение от сервера' if connection == cls._server_connection else 'Получено сообщение от клиента',
|
||||
log_type = 'PyG2O',
|
||||
connection = f"{connection.client.host}:{connection.client.port}",
|
||||
message_event = event,
|
||||
message_uuid = uuid,
|
||||
message_data = kwargs,
|
||||
)
|
||||
|
||||
case _:
|
||||
logger.error(
|
||||
|
||||
Reference in New Issue
Block a user