LoginSignup
1
1

More than 5 years have passed since last update.

Rails4のexception_notificationでsessionの情報が表示されない

Posted at

Rails4では ExceptionNotification が session 情報を表示しない

エラーが起きた時にメールを飛ばしてくれる ExceptionNotification ですが、Rails4ではsessionの情報をちゃんと表示してくれません。(2014/01/09時点、version 4.0.1)

エラーメールのSessionの欄は下のようになっており、dataがうまく表示されていません。

-------------------------------
Session:
-------------------------------

 * session id: "abcdef123456789..."
 * data: #<ActionDispatch::Request::Session:0x007fc38b0f5fe0 ...>
 

解決法

これは 2013/12/9 の Pull Request で修正されていますが、versionは変わらず、4.0.1 のままなので、 Gemfile ではgithubのレポジトリを指定する必要があります。

Gemfile
gem 'exception_notification', "~> 4.0.1", :git => "https://github.com/smartinez87/exception_notification", :branch => "master"

これで表示されるはずです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1