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

Fix NoMethodError: undefined method `silence' for nil:NilClass #1037

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

afn
Copy link
Contributor

@afn afn commented Aug 10, 2023

Don't attempt to call logger.silence if ActiveRecord::Base.logger is
nil.

Fixes #1036.

Don't attempt to call logger.silence if ActiveRecord::Base.logger is
nil.

Fixes bensheldon#1036.
Copy link
Owner

@bensheldon bensheldon left a comment

Choose a reason for hiding this comment

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

@afn for some reason I'm having trouble pushing into your branch, but to solve Sorbet, run:

bin/tapioca todo and then run bin/lint again and you should be golden. Thank you!

@afn
Copy link
Contributor Author

afn commented Aug 10, 2023

Done - thanks for the quick reply!

@bensheldon bensheldon added the bug Something isn't working label Aug 10, 2023
@bensheldon bensheldon merged commit 89d2a87 into bensheldon:main Aug 10, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging this pull request may close these issues.

NoMethodError in ProcessHeartbeat if ActiveRecord logger is nil
2 participants