leshan
leshan copied to clipboard
Add MdcConnectionListener to all Demo.
Scandium MdcConnectionListener add some connection/identity information to log relative to DTLS.
e.g : PEER=127.0.0.1:42748, PRINCIPAL=PreSharedKey Identity [identity: myPskId], CONNECTION_ID=A52B3AE6554B, SESSION_ID=A13DCB6A466C587010DC4CBC5AA07F2D6DE8D5A4B8B830682929ED45C4B0FC11
This is integrated in master (commit fccf81dfeeaf69e7ae06eab13ec26cbdc881e7e7)
There is some issue with the log, I need to test it more (I remove it from master)
I fixed the issue and add MdcConnectionListener only if verbose mode is used.