lib/syslogstash/worker.rb in syslogstash-0.1.3 vs lib/syslogstash/worker.rb in syslogstash-0.1.4

- old
+ new

@@ -16,9 +16,13 @@ @worker.join end private + def log + puts "#{Time.now.strftime("%F %T.%L")} #{self.class} #{yield.to_s}" + end + def debug if ENV['DEBUG_SYSLOGSTASH'] puts "#{Time.now.strftime("%F %T.%L")} #{self.class} #{yield.to_s}" end end