# Running a long process (perhaps it's in an infinite loop) - troubleshooting

**URL:** <https://www.ruby-forum.com/t/running-a-long-process-perhaps-its-in-an-infinite-loop-troubleshooting/190186>\
**Category:** Rails\
**Created:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/running-a-long-process-perhaps-its-in-an-infinite-loop-troubleshooting/190186 "2010-06-17T16:22:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chewmanfoo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c37758/32.png) [@chewmanfoo](https://www.ruby-forum.com/u/chewmanfoo)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/running-a-long-process-perhaps-its-in-an-infinite-loop-troubleshooting/190186/1 "2010-06-17T16:22:15Z")

</div>

Guys,

I added an address search function in an after\_save on my Address  
model. When you key in an address in the form, it tries to look up  
the latitude, longitude using geocoding, and fill in two fields  
(:lat, :long). But somehow it’s getting stuck. When I comment out  
the after\_save call, it works normally (but doesn’t set :lat  
and :long), obviously. I put in logger lines to mark the beginning of  
'digging for geocoding for address : #{full\_address}", and  
“finished”. I see the beginning message in the log, but no  
“finished”.

I know this kind of thing might be an excellent candidate for a daemon  
process.

What I’m wondering is, how can I troubleshoot what’s happening? I  
don’t see a single error in the log. Could there be errors logged  
anywhere else?

TIA,
