lib/syslogstash/worker.rb in syslogstash-0.4.1 vs lib/syslogstash/worker.rb in syslogstash-1.0.0
- old
+ new
@@ -21,14 +21,14 @@
end
private
def log
- $stderr.puts "#{Time.now.strftime("%F %T.%L")} #{self.class} #{yield.to_s}"
+ $stderr.puts "[#{self.class}] #{yield.to_s}"
end
def debug
if ENV['DEBUG_SYSLOGSTASH']
- $stderr.puts "#{Time.now.strftime("%F %T.%L")} #{self.class} #{yield.to_s}"
+ $stderr.puts "[#{self.class}] #{yield.to_s}"
end
end
end