Diego81 / omnicontacts

A generalized Rack middleware for importing contacts from major email providers.
477 stars 230 forks source link

logger is not working #176

Open mlennie opened 6 years ago

mlennie commented 6 years ago

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 with Rails.logger.error then I see the errors in the logs