| 271 | |
| 272 | === 5/19/2010 === |
| 273 | |
| 274 | Adding Error handling and logging to the writer script: |
| 275 | |
| 276 | * the require 'logger' + code to actually log Info and errors is now in place |
| 277 | * For the Db.connect method I've added a begin/rescue/end block. It sleeps for 60 + rand(60) seconds then tries to connect again, |
| 278 | but'll I'll have to fine tune its behavior to only reconnect when It can't reach instead of reconecting every time. it Also logs |
| 279 | how long it's going to wait until it tries again. |
| 280 | * Jack is stripping things for gatherer but we'll eventually merge that code. |
| 281 | * there are 5 places where I need to try and catch exceptions, most of the other exceptions I want to go unhanded so it terminates: |
| 282 | I'll need to put in a bunch of debug loggin to make sure my data is what I think it is. |
| 283 | |