out_es: fix/improve trace_error output
out_es: fix/improve trace_error output

Previously, when trace_error was enabled, a single error log would
be produced with the raw elasticsearch output and the raw input
that caused the error. This was imperfect because the fluent bit
logging functions truncate output. Long inputs could prevent the
output from being printed.

With this change, the input and output is printed in separate
calls. The input is printed as debug, so that users can control
whether or not it is printed. The actual error output is still
printed at the error level.

Signed-off-by: Wesley Pettit <78c973ed9c1462fe35634d4fce92367e57ac034c@amazon.com>

fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit