commit | bfd14fc6ebe30d6d2f4762089dafca9277603ffb | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Aug 19 16:28:07 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Aug 22 20:21:00 2019 +0200 |
tree | 906b2a4c60ae7ff1192e0c50cb3a33fdff94ae76 | |
parent | 5da408818b1a0c94350dca904b8a66f3888b8c7b [diff] |
MINOR: trace: implement a call to a decode function The trace() call will support an optional decoding callback and 4 arguments that this function is supposed to know how to use to provide extra information. The output remains unchanged when the function is NULL. Otherwise, the message is pre-filled into the thread-local trace_buf, and the function is called with all arguments so that it completes the buffer in a readable form depending on the expected level of detail.