aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/exim_log.rb2
-rw-r--r--app/models/incoming_message.rb4
-rw-r--r--lib/memory_profiler.rb2
-rw-r--r--spec/models/raw_email_spec.rb4
-rw-r--r--spec/models/track_mailer_spec.rb6
5 files changed, 9 insertions, 9 deletions
diff --git a/app/models/exim_log.rb b/app/models/exim_log.rb
index ab6822ebc..80535ab41 100644
--- a/app/models/exim_log.rb
+++ b/app/models/exim_log.rb
@@ -117,7 +117,7 @@ class EximLog < ActiveRecord::Base
if !found
# It's very important the envelope from is set for avoiding spam filter reasons - this
# effectively acts as a check for that.
- STDERR.puts("failed to find request sending Exim line for request id " + ir.id.to_s + " " + ir.url_title + " (check envelope from is being set to request address in Ruby, and load-exim-logs crontab is working)") # *** don't comment out this STDERR line, it is the point of the function!
+ $stderr.puts("failed to find request sending Exim line for request id " + ir.id.to_s + " " + ir.url_title + " (check envelope from is being set to request address in Ruby, and load-exim-logs crontab is working)") # *** don't comment out this STDERR line, it is the point of the function!
ok = false
end
end
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index c2ba9c7de..938c74af0 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -1250,8 +1250,8 @@ class IncomingMessage < ActiveRecord::Base
for attachment in incoming_message.get_attachments_for_display
raise "internal error incoming_message " + incoming_message.id.to_s if attachment.content_type.nil?
if AlaveteliFileTypes.mimetype_to_extension(attachment.content_type).nil?
- STDERR.puts "Unknown type for /request/" + incoming_message.info_request.id.to_s + "#incoming-"+incoming_message.id.to_s
- STDERR.puts " " + attachment.filename.to_s + " " + attachment.content_type.to_s
+ $stderr.puts "Unknown type for /request/" + incoming_message.info_request.id.to_s + "#incoming-"+incoming_message.id.to_s
+ $stderr.puts " " + attachment.filename.to_s + " " + attachment.content_type.to_s
end
end
end
diff --git a/lib/memory_profiler.rb b/lib/memory_profiler.rb
index a1cb64d34..15e8457ee 100644
--- a/lib/memory_profiler.rb
+++ b/lib/memory_profiler.rb
@@ -65,7 +65,7 @@ class MemoryProfiler
prev.update curr
GC.start
rescue Exception => err
- STDERR.puts "** memory_profiler error: #{err}"
+ $stderr.puts "** memory_profiler error: #{err}"
end
sleep opt[:delay]
end
diff --git a/spec/models/raw_email_spec.rb b/spec/models/raw_email_spec.rb
index 75066bbcc..6f3a8acd6 100644
--- a/spec/models/raw_email_spec.rb
+++ b/spec/models/raw_email_spec.rb
@@ -23,8 +23,8 @@ describe User, "manipulating a raw email" do
# @raw_email.data = "This \\ that"
# @raw_email.save!
# @raw_email.reload
-# STDERR.puts @raw_email.data
-# STDERR.puts "This \\ that"
+# $stderr.puts @raw_email.data
+# $stderr.puts "This \\ that"
# @raw_email.data.should == "This \\ that"
# end
diff --git a/spec/models/track_mailer_spec.rb b/spec/models/track_mailer_spec.rb
index 4649c4def..828904d02 100644
--- a/spec/models/track_mailer_spec.rb
+++ b/spec/models/track_mailer_spec.rb
@@ -129,9 +129,9 @@ describe TrackMailer do
deliveries = ActionMailer::Base.deliveries
if deliveries.size > 1 # debugging if there is an error
deliveries.each do |d|
- STDERR.puts "------------------------------"
- STDERR.puts d.body
- STDERR.puts "------------------------------"
+ $stderr.puts "------------------------------"
+ $stderr.puts d.body
+ $stderr.puts "------------------------------"
end
end
deliveries.size.should == 1