Skip to content

Log SDK errors to the console if the log level is fatal even if debug is disabled #1496

Description

@marandaneto

Description

Context #1486

If people throw exceptions in callbacks such as the SDK init or the beforeSend callback, the SDK won't be able to capture the errors and will fail silently, which is good.

If debug is enabled, the SDK logs it to the console.

Most of the time people don't know that they can throw in such callbacks and they will think that the SDK is operational, and they will only find out if debug is enabled, for fatal errors, this should be the default behavior so people can learn from the console logs, enable debug for more logging, and fix their issues before its too late.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions