Skip to content

Commit

Permalink
Log info if processing fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
huerlisi committed Aug 25, 2010
1 parent 23f765d commit 08608ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fetcher/imap.rb
Expand Up @@ -56,6 +56,8 @@ def get_messages
process_message(msg)
add_to_processed_folder(uid) if @processed_folder
rescue
Rails.logger.info("Fetcher: Message processing failed:")
Rails.logger.info($!)
handle_bogus_message(msg)
end
# Mark message as fetched
Expand Down

0 comments on commit 08608ff

Please sign in to comment.