Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only require sentry-rails if Rails is defined #234

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

kevindew
Copy link
Member

@kevindew kevindew commented Apr 5, 2022

Without this non Rails app will get a warning each time they initialise.

For example, Search API has:

W, [2022-03-10T09:45:26.609711 #11663] WARN -- sentry: ** [Sentry] sentry-rails can't detect Rails.logger. it may be caused by misplacement of the SDK initialization code

Without this non Rails app will get a warning each time they initialise.

For example, Search API has:

```
W, [2022-03-10T09:45:26.609711 #11663] WARN -- sentry: ** [Sentry] sentry-rails can't detect Rails.logger. it may be caused by misplacement of the SDK initialization code
```
@kevindew kevindew force-pushed the only-require-sentry-rails-if-rails branch from a10fceb to 1510509 Compare April 5, 2022 17:55
Copy link
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

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

Good catch.

@kevindew kevindew merged commit 6798a95 into main Apr 6, 2022
@kevindew kevindew deleted the only-require-sentry-rails-if-rails branch April 6, 2022 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants