wingify / lua-resty-rabbitmqstomp

Opinionated Lua RabbitMQ client library for the ngx_lua apps based on the cosocket API
194 stars 55 forks source link

"closed while logging request",Please have a look #15

Open mrJingChen opened 3 years ago

mrJingChen commented 3 years ago

When using Kong to customize the plug-in, in the log phase, the rabbitmqstomp send a message to prompt that the plug-in is closed, Namely "closed while logging request"。

The specific use is as follows

1.handler.lua local LogStage = require "kong.plugins.invoke-log.log_stage" function InvokeLog:log(conf) InvokeLog.super.log(self) LogStage.execute(conf) end

2.log_stage.lua local rabbitmq = require 'kong.plugins.invoke-log.rabbitmqstomp' ... rabbitmq:send(datas, headers);