Logs exception message & backtrace to rails log [Fixes #3290]