Skip to content

Commit

Permalink
add blank lines
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Tiwari <ashishjaitiwari15112000@gmail.com>
  • Loading branch information
Revolyssup committed Jul 18, 2023
1 parent d194661 commit f89110e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apisix/plugins/loki-logger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,17 @@ function _M.log(conf, ctx)
if batch_processor_manager:add_entry(conf, entry) then
return
end

local labels = conf.log_labels

-- parsing possible variables in label value
for key, value in pairs(labels) do
local new_val, err, n_resolved = core.utils.resolve_var(value, ctx.var)
if not err and n_resolved > 0 then
labels[key] = new_val
end
end

-- generate a function to be executed by the batch processor
local func = function(entries)
-- build loki request data
Expand Down

0 comments on commit f89110e

Please sign in to comment.