Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/sdks/client-sdks/javascript/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ sidebar_position: 120

## Debugging

By default the log level for the SDK is set to `warn`.
Copy link
Contributor

@sameerank sameerank Oct 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean the default "[...] is set to warn in production", right?

I interpret typeof process === 'undefined' || process.env.NODE_ENV === 'production' ? 'warn' : 'info' to mean it's info in other environments.

Also I imagine it might be helpful to list the valid log levels here, although typescript will hint the valid strings anyway so it's not strictly necessary here.

You can change this by calling the `setLogLevel` option on the SDK.
```ts
eppoClient.setLogLevel('debug');
```

You may encounter a situation where a flag assignment produces a value that you did not expect. There are functions [detailed here](/sdks/sdk-features/debugging-flag-assignment) to help you understand how flags are assigned, which will allow you to take corrective action on potential configuration issues.

## Supporting old browsers
Expand Down