Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide worker class to error reporters #306

Closed
jdlombardozzi opened this issue Jul 31, 2017 · 1 comment
Closed

Provide worker class to error reporters #306

jdlombardozzi opened this issue Jul 31, 2017 · 1 comment

Comments

@jdlombardozzi
Copy link
Contributor

I need further context as to which worker an exception occurred. Simple solution is to provide the class to the error reporter handler. This will provide more options for the handler. In my case, I want to direct the error to a worker specific logger. I currently do a worker specific logger for each worker class, but unless I override the work method or rescue all exceptions within that method I am unable to log the error to my expected logger.

jdlombardozzi added a commit to jdlombardozzi/sneakers that referenced this issue Jul 31, 2017
Modified worker_error method to provide current class to the handler call
michaelklishin added a commit that referenced this issue Nov 2, 2017
Provide worker class to error reporters #306
@michaelklishin
Copy link
Collaborator

Addressed by #307.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants