pmux-logview 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/pmux-logview/log_parser.rb +21 -5
- data/lib/pmux-logview/version.rb +1 -1
- data/rpm/pmux-logview.spec +1 -1
- metadata +3 -3
@@ -8,7 +8,7 @@ module Pmux
|
|
8
8
|
@@pmux_log_path = ".pmux/log"
|
9
9
|
@@pmux_old_log_path = ".pmux/log/old"
|
10
10
|
@@dispatcher_log = "dispatcher.log"
|
11
|
-
@@max_dispatcher_log_size = 1024 *
|
11
|
+
@@max_dispatcher_log_size = 1024 * 128 # 128k
|
12
12
|
|
13
13
|
@@document_re = Regexp.new("^---")
|
14
14
|
@@header_re = Regexp.new("^:[a-z_]+:")
|
@@ -156,12 +156,20 @@ module Pmux
|
|
156
156
|
break
|
157
157
|
end
|
158
158
|
when "end_time"
|
159
|
-
if job["
|
159
|
+
if !job["error_status"].nil?
|
160
|
+
insert_idx = idx
|
161
|
+
elsif !jobs[id]["error_status"].nil?
|
162
|
+
next
|
163
|
+
elsif job["end_time_msec"].to_i > jobs[id]["end_time_msec"].to_i
|
160
164
|
insert_idx = idx
|
161
165
|
break
|
162
166
|
end
|
163
167
|
when "elapsed_time"
|
164
|
-
if job["
|
168
|
+
if !job["error_status"].nil?
|
169
|
+
insert_idx = idx
|
170
|
+
elsif !jobs[id]["error_status"].nil?
|
171
|
+
next
|
172
|
+
elsif job["elapsed_time"].to_i > jobs[id]["elapsed_time"].to_i
|
165
173
|
insert_idx = idx
|
166
174
|
break
|
167
175
|
end
|
@@ -184,12 +192,20 @@ module Pmux
|
|
184
192
|
break
|
185
193
|
end
|
186
194
|
when "end_time"
|
187
|
-
if job["
|
195
|
+
if !job["error_status"].nil?
|
196
|
+
next
|
197
|
+
elsif !jobs[id]["error_status"].nil?
|
198
|
+
insert_idx = idx
|
199
|
+
elsif job["end_time_msec"].to_i < jobs[id]["end_time_msec"].to_i
|
188
200
|
insert_idx = idx
|
189
201
|
break
|
190
202
|
end
|
191
203
|
when "elapsed_time"
|
192
|
-
if job["elapsed_time"].
|
204
|
+
if !job["elapsed_time"].nil?
|
205
|
+
next
|
206
|
+
elsif !jobs[id]["elapsed_time"].nil?
|
207
|
+
insert_idx = idx
|
208
|
+
elsif job["elapsed_time"].to_i < jobs[id]["elapsed_time"].to_i
|
193
209
|
insert_idx = idx
|
194
210
|
break
|
195
211
|
end
|
data/lib/pmux-logview/version.rb
CHANGED
data/rpm/pmux-logview.spec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pmux-logview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- hiroyuki kakine
|