Fix exception handling in GPX importer.
authorTom Hughes <tom@compton.nu>
Mon, 16 Jul 2007 06:17:05 +0000 (06:17 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 16 Jul 2007 06:17:05 +0000 (06:17 +0000)
lib/daemons/gpx_import.rb

index a74b642..ba76d60 100755 (executable)
@@ -27,7 +27,7 @@ while(true) do
         Notifier::deliver_gpx_failure(trace, '0 points parsed ok. Do they all have lat,lng,alt,timestamp?')
       end
     rescue Exception => ex
-      logger.info ex
+      logger.info ex.to_s
       ex.backtrace.each {|l| logger.info l }
       trace.destroy
       Notifier::deliver_gpx_failure(trace, ex.to_s + "\n" + ex.backtrace.join("\n"))