Skip to content
This repository has been archived by the owner on Dec 2, 2017. It is now read-only.

Better exception handling/logging #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Better exception handling/logging #13

wants to merge 3 commits into from

Conversation

tonyc
Copy link

@tonyc tonyc commented May 11, 2011

There's a few things going on in this commit.

The first was to refactor the fetchers to use a connection() method to make everything a bit easier to test.

The other is to specify the exception caught, and to log the error and backtrace to either the provided logger, Rails.logger (if it's there), or a stdlib Logger object.

Tony Collen added 3 commits May 11, 2011 17:14
…may be stubbed. create or use a logger object, and expose through a method as well. explicitly catch exceptions and log them to this logger, rather than swallowing them
@tonyc
Copy link
Author

tonyc commented May 20, 2011

Just queued up another pull request for when I get to it

@UnConundrum
Copy link

I'd like to 2nd this request. I'm currently stuck in a loop somewhere, and having a heck of a time finding out where. There is no email to be processed to my knowledge, but fetcher seems to be pulling emails previously processed.... I can't find them either....

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

Successfully merging this pull request may close these issues.

2 participants