private-octopus / picoquic

Minimal implementation of the QUIC protocol
MIT License
527 stars 156 forks source link

Allow debug output to be delivered via callbacks #1544

Closed paulej closed 10 months ago

paulej commented 10 months ago

These changes allow both normal debug logging and debug_dump() output to be delivered to the application via callback functions. This is useful so that debug output can be seamlessly integrated with other logging output. The changes allow the user to specify either a logging stream or callback function, but not both. (I did not see a use case for allowing delivery of messages to two places, but I have no objection to it.)

paulej commented 10 months ago

@huitema Thanks for pointing that out. I fixed that issue, as requested.

paulej commented 10 months ago

Actually, I don't like where I defined mlen. I moved it.