简体   繁体   中英

Rails Production Enviornment errors submit via email

I have a Rails 3.2.14 app in production that as designed when an exception is raised, I get the 500 page "Something went wrong". When this happens, an employee will usually call me right away and tell me that an error occurred but this is not always the case. Sometimes I won't know about the error in production until later that day or longer.

What I'd like to do is set up my production environment to where when an exception/error is raised it displays and error page, but sends me an email in the background.

I've done some research and I see there's AirBrake, but I'm really looking to build/implement my own solution instead of paying for a 3rd-party service.

Can anyone suggest a gem or snippet of code that emails when an error/exception is raised and/or gives the end-user the option to submit the error from the 500 page?

The exception notification does exactly this.

You might also be interested in errbit . It implements the same api as airbrake - in a nutshell you'd be hosting your own version of airbrake.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM