Commit 8b0b3709 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

set prefix in log settings

parent 8d78fb49
......@@ -25,7 +25,11 @@ function Log:matchopts()
return self.limit and '-m limit --limit '..self.limit..'/second'
function Log:target() return string.upper(self.mode or 'log') end
function Log:target()
local mode = self.mode or 'log'
local prefix = self.prefix and ' --'..mode..'-prefix '..self.prefix or ''
return string.upper(mode)..prefix
local Filter = model.class(model.Rule)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment