Skip to content

Commit

Permalink
if called outside quicly_send / quicly_receive, rely on `PTLS_LOG…
Browse files Browse the repository at this point in the history
…__DO_LOG` to emit correct time
  • Loading branch information
kazuho committed Dec 6, 2024
1 parent 2f245d6 commit 36cc33c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/quicly.h
Original file line number Diff line number Diff line change
Expand Up @@ -1417,9 +1417,10 @@ extern const quicly_stream_callbacks_t quicly_stream_noop_callbacks;
active &= ptls_log_conn_maybe_active(conn_state, (const char *(*)(void *))ptls_get_server_name, _tls); \
if (active == 0) \
break; \
PTLS_LOG__DO_LOG(quicly, _name, conn_state, (const char *(*)(void *))ptls_get_server_name, _tls, 0, { \
PTLS_LOG__DO_LOG(quicly, _name, conn_state, (const char *(*)(void *))ptls_get_server_name, _tls, _c->stash.now == 0, { \
if (_c->stash.now != 0) \
PTLS_LOG_ELEMENT_SIGNED(time, _c->stash.now); \
PTLS_LOG_ELEMENT_PTR(conn, _c); \
PTLS_LOG_ELEMENT_SIGNED(time, _c->stash.now); \
do { \
_block \
} while (0); \
Expand Down

0 comments on commit 36cc33c

Please sign in to comment.