On 2025-06-08 00:13:45-04:00, Viktor Dukhovni via Postfix-devel wrote:
On Sat, Jun 07, 2025 at 07:49:42PM -0400, Richard Hansen via Postfix-devel
wrote:
This reuses the existing proxy object created by the dict_debug()
function.
Would it make sense to make the "debug" more configurable, by, e.g.
allowing the user to specify a context string that is logged with
each query, perhaps other future details.
- debug:context:type:spec, or
- debug:{ {context=...}, { dict = type:spec } }
...
Additional properties might include whether to log the actual result, or
just whether a value was returned or not.
Those could be useful additions. I'm hesitant to add them now because:
* they might be YAGNI (I expect debug:* to be used ephemerally for
debugging only, so format/context is not very important), and
* the patch as-is does not preclude adding those features in the
future if the need arises (assuming the curly brace approach would be
taken).
_______________________________________________
Postfix-devel mailing list -- postfix-devel@postfix.org
To unsubscribe send an email to postfix-devel-le...@postfix.org