comparison src/event/quic/ngx_event_quic_frames.c @ 9184:7ec761f0365f

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.
author Vladimir Khomutov <vl@wbsrv.ru>
date Thu, 26 Oct 2023 23:35:09 +0300
parents 8f2f40d3fd18
children
comparison
equal deleted inserted replaced
9183:8b1526a7e383 9184:7ec761f0365f
884 default: 884 default:
885 p = ngx_slprintf(p, last, "unknown type 0x%xi", f->type); 885 p = ngx_slprintf(p, last, "unknown type 0x%xi", f->type);
886 break; 886 break;
887 } 887 }
888 888
889 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, log, 0, "quic frame %s %s %*s", 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), 890 tx ? "tx" : "rx", ngx_quic_level_name(f->level), f->pnum,
891 p - buf, buf); 891 p - buf, buf);
892 } 892 }
893 893
894 #endif 894 #endif