Open mlennie opened 6 years ago
How can we get logger in the code to correctly output errors in the rails logs?
logger
Example: https://github.com/Diego81/omnicontacts/blob/64a50f77ad677e19fb96c45aa19bd5bfb28b6f81/lib/omnicontacts/middleware/base_oauth.rb#L93
If I replace logger.puts with Rails.logger.error then I see the errors in the logs
logger.puts
Rails.logger.error
How can we get
logger
in the code to correctly output errors in the rails logs?Example: https://github.com/Diego81/omnicontacts/blob/64a50f77ad677e19fb96c45aa19bd5bfb28b6f81/lib/omnicontacts/middleware/base_oauth.rb#L93
If I replace
logger.puts
withRails.logger.error
then I see the errors in the logs