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,