Commit 4fd9fa23 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Show ngtcp2 debug log with --verbose

parent 90314697
......@@ -386,6 +386,8 @@ void debug_log_printf(void *user_data, const char *fmt, ...) {
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
}
} // namespace
......@@ -588,8 +590,9 @@ int Client::quic_init(const sockaddr *local_addr, socklen_t local_addrlen,
ngtcp2_settings settings;
ngtcp2_settings_default(&settings);
settings.log_printf = debug_log_printf;
settings.log_printf = nullptr;
if (config->verbose) {
settings.log_printf = debug_log_printf;
}
settings.initial_ts = timestamp(worker->loop);
settings.max_stream_data_bidi_local = (1 << config->window_bits) - 1;
settings.max_stream_data_uni = (1 << config->window_bits) - 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment