lib/djb/daemontools/multilog/logs.rb in multilog-collector-0.3.0 vs lib/djb/daemontools/multilog/logs.rb in multilog-collector-0.3.1
- old
+ new
@@ -7,14 +7,11 @@
class Logs < Array
def load(file,lines = nil)
@file = file
open(file) do |f|
- n = 0
while line = f.gets
- n += 1
self << Log.new(line,service)
- break if lines and n >= lines
end
end
self
end