diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-05-11 16:26:31 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-05-11 16:26:31 +0200 |
commit | a9cc8118246d46f071cdf85c1eaee1549b98f57f (patch) | |
tree | ba1844a594237966442ba9810dbb85b102b9f108 /report/report_application.rb | |
parent | 6272d45ed853419ea751ca1b78718868fc36b865 (diff) |
report loggin, remove datamapper debugging
Diffstat (limited to 'report/report_application.rb')
-rw-r--r-- | report/report_application.rb | 6 |
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 |