def add_log_client(logger, client):
    if client in ':':
        client, port = tuple(client.split(':', 1))
        port = int(port)
    else:
        port = logging.handlers.DEFAULT_TCP_LOGGING_PORT
        
    socket_handler = logging.handlers.SocketHandler(client, port)
    socket_handler.setLevel(logging.INFO)
    logger.addHandler(socket_handler)
    
    return socket_handler
dataset/ETHPy150Open chineking/cola/cola/core/logs.py/add_log_client/swapped operands of `in`