Skip to content

Commit

Permalink
rake handler added email notify
Browse files Browse the repository at this point in the history
  • Loading branch information
olkeene committed Dec 24, 2008
1 parent 8d74cf3 commit 09b48c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/exception_loggable_rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def create_from_rake_exception(exception, rake_task, environment)
:backtrace => exception.backtrace,
:environment => (env << "* Process: #{$$}") * "\n",
:request => ''

deliver_exception
end
end

Expand Down
4 changes: 4 additions & 0 deletions lib/logged_exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ def create_from_exception(controller, exception, data)
:backtrace => exception.backtrace,
:request => controller.request

deliver_exception
end

def deliver_exception
LoggedExceptionsMailer.deliver_exception if LoggedExceptionsMailer.mailer_config[:deliver]
end

Expand Down

0 comments on commit 09b48c7

Please sign in to comment.