~titusx/nginx/mainline

« back to all changes in this revision

Viewing changes to src/event/quic/ngx_event_quic_frames.c

  • Committer: Vladimir Khomutov
  • Date: 2023-10-26 20:35:09 UTC
  • Revision ID: git-v1:a13ed7f5ed5bebdc0b9217ffafb75ab69f835a84
QUIC: improved packet and frames debug tracing.

Currently, packets generated by ngx_quic_frame_sendto() and
ngx_quic_send_early_cc() are not logged, thus making it hard
to read logs due to gaps appearing in packet numbers sequence.

At frames level, it is handy to see immediately packet number
in which they arrived or being sent.

Show diffs side-by-side

added added

removed removed

Lines of Context:
886
886
        break;
887
887
    }
888
888
 
889
 
    ngx_log_debug4(NGX_LOG_DEBUG_EVENT, log, 0, "quic frame %s %s %*s",
890
 
                   tx ? "tx" : "rx", ngx_quic_level_name(f->level),
 
889
    ngx_log_debug5(NGX_LOG_DEBUG_EVENT, log, 0, "quic frame %s %s:%uL %*s",
 
890
                   tx ? "tx" : "rx", ngx_quic_level_name(f->level), f->pnum,
891
891
                   p - buf, buf);
892
892
}
893
893