From 077d0872e309e8b69b7d10935de4872c24752e56 Mon Sep 17 00:00:00 2001 From: enzowritescode <1328683+enzowritescode@users.noreply.github.com> Date: Wed, 22 Jan 2025 21:39:31 -0700 Subject: [PATCH] Fix LogAuditRecWithLevel doc comment and fix typo (#29980) --- server/channels/web/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/channels/web/context.go b/server/channels/web/context.go index 3e6a9720f1..a00087de2a 100644 --- a/server/channels/web/context.go +++ b/server/channels/web/context.go @@ -41,7 +41,7 @@ func (c *Context) LogAuditRec(rec *audit.Record) { c.LogAuditRecWithLevel(rec, app.LevelAPI) } -// LogAuditRec logs an audit record using specified Level. +// LogAuditRecWithLevel logs an audit record using specified Level. // If the context is flagged with a permissions error then `level` // is ignored and the audit record is emitted with `LevelPerms`. func (c *Context) LogAuditRecWithLevel(rec *audit.Record, level mlog.Level) { @@ -59,7 +59,7 @@ func (c *Context) LogAuditRecWithLevel(rec *audit.Record, level mlog.Level) { c.App.Srv().Audit.LogRecord(level, *rec) } -// MakeAuditRecord creates a audit record pre-populated with data from this context. +// MakeAuditRecord creates an audit record pre-populated with data from this context. func (c *Context) MakeAuditRecord(event string, initialStatus string) *audit.Record { rec := &audit.Record{ EventName: event,