diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-09-07 10:43:55 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-09-07 10:43:55 +0200 |
commit | a53f82b606537154a0b77749cf779d9b27c5271f (patch) | |
tree | cb079c4936edccd5a07c2413850b24f1055a56ea /reach_reports | |
parent | fd1258afd54660cffe4c45472f9c856c68d30e61 (diff) |
log posted report size
Diffstat (limited to 'reach_reports')
-rw-r--r-- | reach_reports/reach_application.rb | 1 | ||||
-rw-r--r-- | reach_reports/reach_service.rb | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/reach_reports/reach_application.rb b/reach_reports/reach_application.rb index 807800c..74a1006 100644 --- a/reach_reports/reach_application.rb +++ b/reach_reports/reach_application.rb @@ -67,6 +67,7 @@ post '/reach_report/:type/:id' do input = request.env["rack.input"].read halt 400, "no xml data specified" unless input && input.to_s.size>0 + LOGGER.debug "size of posted data: "+input.to_s.size.to_s ReachReports::QmrfReport.from_xml(rep,input) diff --git a/reach_reports/reach_service.rb b/reach_reports/reach_service.rb index a742c49..3505031 100644 --- a/reach_reports/reach_service.rb +++ b/reach_reports/reach_service.rb @@ -15,9 +15,9 @@ module ReachReports def self.list_reports(type) case type when /(?i)QMRF/ - ReachReports::QmrfReport.all.collect{ |r| r.report_uri }.join("\n") + ReachReports::QmrfReport.all.collect{ |r| r.report_uri }.join("\n")+"\n" when /(?i)QPRF/ - ReachReports::QprfReport.all.collect{ |r| r.report_uri }.join("\n") + ReachReports::QprfReport.all.collect{ |r| r.report_uri }.join("\n")+"\n" end end |