From dd94477f578c40fa00d74360b552be45cb7a8869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Ch=C3=A1vez?= Date: Tue, 4 Jun 2024 16:36:23 +0200 Subject: [PATCH] chore: prints error on closing tx. (#275) --- wasmplugin/plugin.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wasmplugin/plugin.go b/wasmplugin/plugin.go index e2fae78..f2673a9 100644 --- a/wasmplugin/plugin.go +++ b/wasmplugin/plugin.go @@ -656,7 +656,10 @@ func (ctx *httpContext) OnHttpStreamDone() { // Internally, if the engine is off, no log phase rules are evaluated ctx.tx.ProcessLogging() - _ = ctx.tx.Close() + err := ctx.tx.Close() + if err != nil { + ctx.logger.Error().Err(err).Msg("Failed to close transaction") + } ctx.logger.Info().Msg("Finished") logMemStats() }