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);
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);