Skip to content

Commit

Permalink
README fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig authored and cynicaljoy committed Oct 28, 2024
1 parent 2a937ee commit 119944b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func main() {
panic(clientErr)
}

streamQuery, _ := fauna.FQL("Product.all().toStream()", nil)
streamQuery, _ := fauna.FQL("Product.all().eventSource()", nil)
events, err := client.StreamFromQuery(streamQuery)
if err != nil {
panic(err)
Expand Down Expand Up @@ -438,6 +438,7 @@ client.StreamFromQuery(streamQuery, nil, fauna.EventCursor("abc2345=="))
For supported functions, see
[StreamOptFn](https://pkg.go.dev/github.com/fauna/fauna-go/v2#StreamOptFn) in
the API reference.

## Debug logging

To enable debug logging set the `FAUNA_DEBUG` environment variable to an integer for the value of the desired [slog.Level](https://pkg.go.dev/log/slog#Level).
Expand All @@ -446,7 +447,7 @@ For 1.22+, the driver uses the [slog.Logger](https://pkg.go.dev/log/slog#Logger)
You can optionally define your own Logger.
For an example, see `CustomLogger` in [logging_slog_test.go](logging_slog_test.go).

> [!NOTE]
> [!NOTE]
> The value of the `Authorization` header is redacted when logging.
## Contributing
Expand Down

0 comments on commit 119944b

Please sign in to comment.