summaryrefslogtreecommitdiff
path: root/reach_reports
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-09-07 10:43:55 +0200
committermguetlein <martin.guetlein@gmail.com>2010-09-07 10:43:55 +0200
commita53f82b606537154a0b77749cf779d9b27c5271f (patch)
treecb079c4936edccd5a07c2413850b24f1055a56ea /reach_reports
parentfd1258afd54660cffe4c45472f9c856c68d30e61 (diff)
log posted report size
Diffstat (limited to 'reach_reports')
-rw-r--r--reach_reports/reach_application.rb1
-rw-r--r--reach_reports/reach_service.rb4
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