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?
ReadBuffer & istr,
    WriteBuffer & ostr,
    bool allow_into_outfile,
    ContextMutablePtr context,
    SetResultDetailsFunc set_result_details,
    const std::optional<FormatSettings> & output_format_settings)
{
    PODArray<char> parse_buf;
    const char * begin;
    const char * end;
    istr.nextIfAtEnd();
    size_t max_query_size = context->getSettingsRef().max_query_size;
    if (istr.buffer().end() - istr.position() > static_cast<ssize_t>(max_query_size))
    {
        
        begin = istr.position();
        end = istr.buffer().end();
        istr.position() += end - begin;
    }
    else