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 a60c1f7 commit 9cff344Copy full SHA for 9cff344
coderd/audit/exporter.go
@@ -34,11 +34,12 @@ func NewExporter(filter Filter, backends ...Backend) *Exporter {
34
// filter to determine if the backend tolerates the audit log. If not, it is
35
// dropped.
36
func (e *Exporter) Export(ctx context.Context, alog database.AuditLog) error {
37
+ decision, err := e.filter.Check(ctx, alog)
38
+ if err != nil {
39
+ return xerrors.Errorf("filter check: %w", err)
40
+ }
41
+
42
for _, backend := range e.backends {
- decision, err := e.filter.Check(ctx, alog)
- if err != nil {
- return xerrors.Errorf("filter check: %w", err)
- }
43
44
if decision&backend.Decision() != backend.Decision() {
45
continue
0 commit comments