From 5837b3b3830f4b5065cc989fd29636ccef3b887b Mon Sep 17 00:00:00 2001 From: mydogshitgold Date: Thu, 9 Feb 2023 01:35:50 +0800 Subject: [PATCH] feat: add option to override destination of access log (jsonv4) --- infra/conf/v4/policy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/conf/v4/policy.go b/infra/conf/v4/policy.go index 2bb3111e83a..40adfa22ce3 100644 --- a/infra/conf/v4/policy.go +++ b/infra/conf/v4/policy.go @@ -55,6 +55,7 @@ type SystemPolicy struct { StatsInboundDownlink bool `json:"statsInboundDownlink"` StatsOutboundUplink bool `json:"statsOutboundUplink"` StatsOutboundDownlink bool `json:"statsOutboundDownlink"` + OverrideAccessLogDest bool `json:"overrideAccessLogDest"` } func (p *SystemPolicy) Build() (*policy.SystemPolicy, error) { @@ -65,6 +66,7 @@ func (p *SystemPolicy) Build() (*policy.SystemPolicy, error) { OutboundUplink: p.StatsOutboundUplink, OutboundDownlink: p.StatsOutboundDownlink, }, + OverrideAccessLogDest: p.OverrideAccessLogDest, }, nil }