We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ae295 commit 1ee8441Copy full SHA for 1ee8441
coderd/audit.go
@@ -282,10 +282,14 @@ func auditLogDescription(alog database.GetAuditLogsOffsetRow) string {
282
_, _ = b.WriteString("{user} ")
283
}
284
285
- if alog.AuditLog.StatusCode >= 400 {
+ switch {
286
+ case alog.AuditLog.StatusCode == int32(http.StatusSeeOther):
287
+ _, _ = b.WriteString("was redirected attempting to ")
288
+ _, _ = b.WriteString(string(alog.AuditLog.Action))
289
+ case alog.AuditLog.StatusCode >= 400:
290
_, _ = b.WriteString("unsuccessfully attempted to ")
291
_, _ = b.WriteString(string(alog.AuditLog.Action))
- } else {
292
+ default:
293
_, _ = b.WriteString(codersdk.AuditAction(alog.AuditLog.Action).Friendly())
294
295
0 commit comments