Skip to content

Commit

Permalink
website: Fix code comment with OmitLogWithFieldKeys example (#85)
Browse files Browse the repository at this point in the history
Copy-pasta mistake on my part. The `OmitLog` functions will prevent the entire entry from being logged.
  • Loading branch information
bflad committed Jul 21, 2022
1 parent 87b5a00 commit 3e6a1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/plugin/log/filtering.mdx
Expand Up @@ -166,7 +166,7 @@ Use the [`tflog.OmitLogWithFieldKeys()` function](https://pkg.go.dev/github.com/
```go
tflog.OmitLogWithFieldKeys(ctx, "my-sensitive-field")

// Will output: example message: my-sensitive-field=***
// Will not be output
tflog.Trace(ctx, "example message", map[string]interface{}{"my-sensitive-field": "some-sensitive-data"})
```

Expand Down

0 comments on commit 3e6a1b6

Please sign in to comment.