From 5301926307c441c811167f21614b2b42075b0c65 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 15 Mar 2017 15:35:50 +0000 Subject: [PATCH] [Minor] Save extra fields in history --- src/plugins/lua/history_redis.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua index c656215d0..eaa087490 100644 --- a/src/plugins/lua/history_redis.lua +++ b/src/plugins/lua/history_redis.lua @@ -67,6 +67,9 @@ local function normalise_results(tbl, task) tbl.unix_time = seconds tbl.subject = task:get_header('subject') or 'unknown' + tbl.size = task:get_size() + tbl.ip = tostring(task:get_from_ip() or 'unknown') + tbl.user = task:get_user() or 'unknown' end local function history_save(task) -- 2.39.5