@@ -1397,13 +1397,13 @@ uint64_t ptls_decode_quicint(const uint8_t **src, const uint8_t *end);
1397
1397
ptls_decode_assert_block_close((src), end); \
1398
1398
} while (0)
1399
1399
1400
- #define PTLS_LOG__DO_LOG (module , name , conn_state , get_sni , get_sni_arg , block ) \
1400
+ #define PTLS_LOG__DO_LOG (module , name , conn_state , get_sni , get_sni_arg , add_time , block ) \
1401
1401
do { \
1402
1402
int ptlslog_skip = 0, ptlslog_include_appdata = 0; \
1403
1403
do { \
1404
1404
char smallbuf[128]; \
1405
1405
ptls_buffer_t ptlslogbuf; \
1406
- ptls_log__do_write_start(&logpoint, &ptlslogbuf, smallbuf, sizeof(smallbuf)); \
1406
+ ptls_log__do_write_start(&logpoint, &ptlslogbuf, smallbuf, sizeof(smallbuf), (add_time)); \
1407
1407
do { \
1408
1408
block \
1409
1409
} while (0); \
@@ -1420,7 +1420,7 @@ uint64_t ptls_decode_quicint(const uint8_t **src, const uint8_t *end);
1420
1420
PTLS_LOG_DEFINE_POINT(module, name, logpoint); \
1421
1421
if (ptls_log_point_maybe_active(&logpoint) == 0) \
1422
1422
break; \
1423
- PTLS_LOG__DO_LOG(module, name, NULL, NULL, NULL, {block}); \
1423
+ PTLS_LOG__DO_LOG(module, name, NULL, NULL, NULL, 1, {block}); \
1424
1424
} while (0)
1425
1425
1426
1426
#define PTLS_LOG_CONN (name , tls , block ) \
@@ -1434,7 +1434,7 @@ uint64_t ptls_decode_quicint(const uint8_t **src, const uint8_t *end);
1434
1434
active &= ptls_log_conn_maybe_active(conn_state, (const char *(*)(void *))ptls_get_server_name, _tls); \
1435
1435
if (active == 0) \
1436
1436
break; \
1437
- PTLS_LOG__DO_LOG(picotls, name, conn_state, (const char *(*)(void *))ptls_get_server_name, _tls, { \
1437
+ PTLS_LOG__DO_LOG(picotls, name, conn_state, (const char *(*)(void *))ptls_get_server_name, _tls, 1, { \
1438
1438
PTLS_LOG_ELEMENT_PTR(tls, _tls); \
1439
1439
do { \
1440
1440
block \
@@ -1636,7 +1636,8 @@ int ptls_log__do_push_signed32(ptls_buffer_t *buf, int32_t v);
1636
1636
int ptls_log__do_push_signed64 (ptls_buffer_t * buf , int64_t v );
1637
1637
int ptls_log__do_push_unsigned32 (ptls_buffer_t * buf , uint32_t v );
1638
1638
int ptls_log__do_push_unsigned64 (ptls_buffer_t * buf , uint64_t v );
1639
- void ptls_log__do_write_start (struct st_ptls_log_point_t * point , ptls_buffer_t * buf , void * smallbuf , size_t smallbufsize );
1639
+ void ptls_log__do_write_start (struct st_ptls_log_point_t * point , ptls_buffer_t * buf , void * smallbuf , size_t smallbufsize ,
1640
+ int add_time );
1640
1641
int ptls_log__do_write_end (struct st_ptls_log_point_t * point , struct st_ptls_log_conn_state_t * conn , const char * (* get_sni )(void * ),
1641
1642
void * get_sni_arg , ptls_buffer_t * buf , int includes_appdata );
1642
1643
0 commit comments