You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, wanted to say thanks for that gem, works great! But I've found an issue:
React::Rails::HotLoader.log: No flush method for Rails.logger in edge rails
For some reason, you decided to render all errors through your own method, which ends up running ::Rails.logger.flush, that is not available (at least in rails 4.1.6)
The text was updated successfully, but these errors were encountered:
// config/initializers/react_rails_hot_loader.rb
if Rails.env.development?
React::Rails::HotLoader.class_eval do
def self.log(message)
msg = "[HotLoader] #{message}"
::Rails.logger.info(msg)
::Rails.logger.try(:flush)
end
end
React::Rails::HotLoader.start()
end
Hello, guys!
First of all, wanted to say thanks for that gem, works great! But I've found an issue:
React::Rails::HotLoader.log: No flush method for Rails.logger in edge rails
For some reason, you decided to render all errors through your own method, which ends up running ::Rails.logger.flush, that is not available (at least in rails 4.1.6)
The text was updated successfully, but these errors were encountered: