Skip to content

Commit

Permalink
bug fix to permit audit streaming to stdout writer(#7803)
Browse files Browse the repository at this point in the history
  • Loading branch information
thsubaku9-pro authored May 11, 2021
1 parent c058627 commit c49e523
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ee/audit/audit_ee.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ func GetAuditConf(conf string) *x.LoggerConf {
return nil
}
auditFlag := z.NewSuperFlag(conf).MergeAndCheckDefault(worker.AuditDefaults)
out := auditFlag.GetPath("output")
out := auditFlag.GetString("output")
if out != "stdout" {
out = auditFlag.GetPath("output")
}
x.AssertTruef(out != "", "out flag is not provided for the audit logs")
encBytes, err := readAuditEncKey(auditFlag)
x.Check(err)
Expand Down

0 comments on commit c49e523

Please sign in to comment.