Skip to content

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

Description

@mrJingChen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions