summaryrefslogtreecommitdiff
path: root/report/report_application.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-05-11 16:26:31 +0200
committermguetlein <martin.guetlein@gmail.com>2010-05-11 16:26:31 +0200
commita9cc8118246d46f071cdf85c1eaee1549b98f57f (patch)
treeba1844a594237966442ba9810dbb85b102b9f108 /report/report_application.rb
parent6272d45ed853419ea751ca1b78718868fc36b865 (diff)
report loggin, remove datamapper debugging
Diffstat (limited to 'report/report_application.rb')
-rw-r--r--report/report_application.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/report/report_application.rb b/report/report_application.rb
index 16724f6..29367be 100644
--- a/report/report_application.rb
+++ b/report/report_application.rb
@@ -10,8 +10,10 @@ def perform
halt 400, ex.message
rescue Exception => ex
#LOGGER.error(ex.message)
- #raise ex # sinatra returns 501
- halt 500, ex.message
+ LOGGER.error "report error: "+ex.message
+ LOGGER.error ": "+ex.backtrace.join("\n")
+ raise ex # sinatra returns 501
+ #halt 500, ex.message
end
end