This commit is contained in:
uu59 2014-07-03 14:28:00 +09:00
parent 2f50f07c8a
commit cba4f3657d

View File

@ -30,6 +30,7 @@ class Fluentd
f.write content
end
end
def log_tail(limit = nil)
limit = limit.to_i rescue 0
limit = limit.zero? ? Settings.default_log_tail_count : limit