Skip to content

Commit 36484ce

Browse files
thsubaku9-prothsubaku9-dgraph
authored and
thsubaku9-dgraph
committed
bug fix to permit audit streaming to stdout writer(#7803)
1 parent 32f1f58 commit 36484ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ee/audit/audit_ee.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ func GetAuditConf(conf string) *x.LoggerConf {
6868
return nil
6969
}
7070
auditFlag := z.NewSuperFlag(conf).MergeAndCheckDefault(worker.AuditDefaults)
71-
out := auditFlag.GetPath("output")
71+
out := auditFlag.GetString("output")
72+
if out != "stdout" {
73+
out = auditFlag.GetPath("output")
74+
}
7275
x.AssertTruef(out != "", "out flag is not provided for the audit logs")
7376
encBytes, err := readAuditEncKey(auditFlag)
7477
x.Check(err)

0 commit comments

Comments
 (0)