From 2d5fbab25170b53ce88a7c0077d6a14d43d94514 Mon Sep 17 00:00:00 2001 From: Kaustubh J <79963138+thsubaku9-dgraph@users.noreply.github.com> Date: Tue, 11 May 2021 17:28:43 +0530 Subject: [PATCH] bug fix to permit audit streaming to stdout writer(#7803) --- ee/audit/audit_ee.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ee/audit/audit_ee.go b/ee/audit/audit_ee.go index 84097001c69..9748fde25da 100644 --- a/ee/audit/audit_ee.go +++ b/ee/audit/audit_ee.go @@ -63,7 +63,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)