If we are enabling async_insert, query log missing all insert queries.

We are using log for monitoring, too (inserts time, inserts frequency etc), and with  async_insert query_log is empty. Maybe log can be written anyway?
{
            onExceptionBeforeStart(query_for_logging, context, time_in_microseconds(current_time), ast);
        }
        throw;
    }
    setQuerySpecificSettings(ast, context);
    
    
    
    
    if (!internal && settings.log_queries && settings.log_queries_probability < 1.0)
    {
        std::bernoulli_distribution should_write_log{settings.log_queries_probability};
        context->setSetting("log_queries", should_write_log(thread_local_rng));
        context->setSetting("log_queries_probability", 1.0);
    }
    
    String query(begin, query_end);
    BlockIO res;
    String query_for_logging;
    try
    {
        
        if (context->hasQueryParameters())
        {
            ReplaceQueryParameterVisitor visitor(context->getQueryParameters());
            visitor.visit(ast);
            query = serializeAST(*ast);
        }
        if (const auto * query_with_table_output = dynamic_cast<const ASTQueryWithTableAndOutput *>(ast.get()))