Hi Guys,

I also have a suggestion, while at it:

SEND_ERR() which is used to report unexpected Lua errors (because of
improper API usage, or due to external factors such as IO/memory issues)
currently does a stderr duplication as in hlua_sendlog()

I'm thinking that it could be useful to make this configurable too, but
maybe independently from the txn:log() (hlua_sendlog()) logic since in
this case for errors we might be more interested in stderr reporting by
default instead of regular logging?


One last thing, SEND_ERR() reports to stderr through ha_alert() and
hlua_sendlog() does it through fprintf(stderr, ) by appending a static
header containing the log level, the date and the pid: maybe we should
try to unify those outputs as well?

Aurelien

Reply via email to