Skip to content

Commit

Permalink
chore: prints error on closing tx. (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs authored Jun 4, 2024
1 parent 86ab1ff commit dd94477
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wasmplugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit dd94477

Please sign in to comment.