On Mon, Dec 16, 2019 at 09:30:38AM +0100, Baptiste wrote:
> My 2 cents.
> I personally use a lot this converter, si I'd be more than happy to get it
> available in default built!

OK.

> I think Willy's idea to route its output wherever we want is great too for
> production purpose.

At least the thing is that you cannot leave it enabled forever when it's
on stdout or stderr because either this will be dropped entirely or will
inflate the service logs. With the rotating buffer you can leave it enabled
full time and only go to the CLI to consult it when needed. Later we could
imagine passing an extra ID to selectively enable/disable each of them via
the CLI. It would then provide something more or less comparable to what
Cyril did many years ago with his ACL debugging patchset.

> Can we also use an env variable? So we can easily switch from stdout to
> ring buffer without updating the config file?

It's orthogonal, environment variables are evaluated by the config parser :-)
You could even imagine having something like  :

     http-request some-action "sample_fetch${DEBUG},converter"

Where DEBUG is either empty or ",debug".

Willy

Reply via email to