Skip to content
Browse files

One more place to work with .gz

  • Loading branch information...
1 parent 1a20fc4 commit 1e62ff26cf7e535ee8f192484f28d631d5af80fd @akzhan akzhan committed
Showing with 3 additions and 2 deletions.
  1. +1 −1 CHANGELOG.markdown
  2. +1 −0 lib/runit-man/service_info.rb
  3. +1 −1 lib/runit-man/version.rb
View
2 CHANGELOG.markdown
@@ -1,6 +1,6 @@
## Changes
-### Version 2.0.3
+### Version 2.0.4
* Support for gzipped logs.
### Version 2.0.2
View
1 lib/runit-man/service_info.rb
@@ -156,6 +156,7 @@ def logger_log_files
full_name = File.expand_path(name, dir_name)
next unless File.directory?(full_name)
file_name = File.join(full_name, "#{self.name}.log")
+ file_name = "#{file_name}.gz" unless File.exists?(file_name)
stats = File.stat(file_name)
label = "#{Utils.host_name}-#{self.name}-#{name}.log"
r << {
View
2 lib/runit-man/version.rb
@@ -1,4 +1,4 @@
module RunitManVersion
- VERSION = '2.0.3'.freeze
+ VERSION = '2.0.4'.freeze
end

0 comments on commit 1e62ff2

Please sign in to comment.
Something went wrong with that request. Please try again.