Skip to content
Snippets Groups Projects
Commit d66ca2c1 authored by Yaroslav Dynnikov's avatar Yaroslav Dynnikov Committed by Kirill Yukhin
Browse files

feedback: unify payload generation logic

This change is related to #4391. The objective was to collect additional
information about modules, but it's hard to do without changing API.

This patch will allow to monkey-patch report generation and achieve the
same results without interfering the daemon behavior.

(cherry picked from commit 5b9f207d)
parent 1cbd136a
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,9 @@ end
local function feedback_loop(self)
fiber.name(PREFIX, { truncate = true })
local header = { feedback_type = "version", feedback_version = 1 }
while true do
local feedback = fill_in_feedback(header)
local feedback = self:generate_feedback()
local msg = self.control:get(self.interval)
-- if msg == "send" then we simply send feedback
if msg == "stop" then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment