logster 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da67d5bcdf937f7a3b31628d323b488e4b636eed
4
- data.tar.gz: af2f4f3e754b7d633e91db18f584e2c8abce851c
3
+ metadata.gz: 140b734bbdd4c32739d6b81917f73ac1cbfd28c7
4
+ data.tar.gz: ced4aba6412b12cc364a69c3260bd9c9aa5aa761
5
5
  SHA512:
6
- metadata.gz: 3b72d995027564a41295728721ee5869a0adbceeeb21aeb32452a7f89382b03abe2b97ca9015994fd63e0961bf8aa275fd990162ad113676dbd0ecfe427b5674
7
- data.tar.gz: 8d3cd4efb06d1efbea8b56257aa97ee76872eaea45572d7a824dca4cd34052379dc9b9c4b8dab212be24e5b68bc203e127d5f3ec838996897230faf08ed8e9dd
6
+ metadata.gz: 8c52d92a944cc21a48d8cb7e2d196777e75d94bde26f126372833a61a99b7f680337fc5772b8bf99736b85a1947ccda73876a47e5d1bc76baf4ab51f0f67f8ac
7
+ data.tar.gz: 792f19434bded37eabc74b1c1cccd19401a1ab840331f3934630801c43b78ec62a051d97b50c5d160a608d778c98824d014a9d9768f25949028ef0577b5acb88
@@ -0,0 +1,127 @@
1
+ # CHANGELOG
2
+
3
+ - 2017-10-27: Version 1.2.8
4
+ - Fix: `Logster::Middleware::DebugExceptions` is passed a request in Rails 5 instead of the env.
5
+
6
+ - 2017-01-30: Version 1.2.7
7
+ - Feature: Add override_level to Logster::Logger allowing for threadsafe logger override
8
+
9
+ - 2016-10-24: Version 1.2.6
10
+ - Fix: Check if `Rails.env` is defined when using Logster in a none Rails project.
11
+
12
+ - 2016-07-11: Version 1.2.5
13
+ - Fix: Chained `Logster::Logger` logger now receives backtrace as well.
14
+
15
+ - 2016-05-05: Version 1.2.4
16
+ - Fix: XSS in log message show if attacker can inject script into ENV
17
+
18
+ - 2016-05-05: Version 1.2.3
19
+ - Fix: clear_all now also clears rate limits
20
+ - Fix: protect against corrupt data in redis during clear
21
+
22
+ - 2016-03-22: Version 1.2.2
23
+ - Fix: Conflicting attributes and method name for `Logster::RedisStore#rate_limits`.
24
+ - Fix: Rate limit checker was tracking limits too early. It should only track when a message has been bumped or saved.
25
+
26
+ - 2016-03-22: Version 1.2.1
27
+ - Feature: Add method to retrieve current rate from rate limiters.
28
+ - Feature: Make `RedisStore#rate_limits` readable.
29
+ - Feature: Make `RedisRateLimiter#callback` and `RedisRateLimiter#duration` readable.
30
+
31
+ - 2016-03-18: Version 1.2.0
32
+ - Fix: Move Redis configuration into RedisStore.
33
+ - Feature: Allow `RedisStore#redis_prefix` to either be a String or a Proc.
34
+
35
+ - 2016-02-11: Version 1.1.1
36
+ - Feature: Error rate can now be tracked in one minute and one hour buckets.
37
+
38
+ - 2015-11-27: Version 1.0.1
39
+ - New assets and logster logo
40
+ - Added favicon
41
+ - Added title
42
+ - Use rails logger instead of invoking store
43
+
44
+ - 2015-08-18: Version 0.9.9
45
+ - This marks the largest release of Logster to date, it has been in production use for quite a while, hence the version bump.
46
+ - Feature: automatically group errors in production mode, can be manually controlled via Logster.config.allow_grouping
47
+ - Feature: automatically track application version, can be manually controlled via Logster.config.application_version
48
+ - Feature: Font Awesome icons used throughout
49
+ - Feature: Ember upgrade to 1.13
50
+ - Feature: you can now "solve" a class of errors, if error has an application_version and backtrace. Once an error is solved it will no longer be reported for the "solved" application_versions
51
+ - Feature: allow users to delete a single error
52
+ - UX: use table for env
53
+ - Feature: display "protected" state of message in list
54
+ - Feature: use local times as opposed to relative times in time column
55
+ - UX: use Google Roboto font as opposed to system fonts
56
+ - UX: remove pointless titles from log table
57
+ - Feature: If Logster is in a background tab only poll once every 60 seconds (as opposed to 3)
58
+ - Fix: protect/unprotect redirected to show page
59
+
60
+ - 2015-06-16: Version 0.8.3
61
+ - Chained loggers now respect chain ignore
62
+ - Add hostname and process_id to env on all messages
63
+
64
+ - 2015-06-10: Version 0.8.2
65
+ - Add hostname and process_id to env on all messages
66
+
67
+ - 2015-05-01: Version 0.8.1
68
+ - Don't crash out logging routine if redis is down or stderr is closed
69
+
70
+ - 2015-04-16: Version 0.8.0
71
+ - Improve formatting of /show page
72
+ - Big version bump cause it is quite stable
73
+
74
+ - 2015-02-27: Version 0.1.7
75
+ - Fix invalid request on ?test
76
+
77
+ - 2014-08-05: Version 0.1.3
78
+ - Automatically include ignore filter
79
+
80
+ - 2014-08-13: Version 0.1.6
81
+ - Simplify install process
82
+ - Fix crash on 404 in /logs dir
83
+
84
+ - 2014-08-10: Version 0.1.5
85
+ - Fix crash in Rails 3
86
+
87
+ - 2014-08-08: Version 0.1.4
88
+ - Fix crash in ignore filter
89
+
90
+ - 2014-07-17: Version 0.1.1
91
+ - Refactored report method into base_store.rb - will be easier to make a new log store
92
+ - Add link in UI to clear all (non-protected) logs
93
+ - Add example of submitting logs from Sidekiq jobs
94
+ - Show Protect/Share links on all tabs
95
+ - Render hashes provided via Logster.add_to_env
96
+
97
+ - 2014-07-04: Version 0.0.12
98
+ - Feature: Able to share logs, at /logs/show/(hexdigits)
99
+ - Add protecting logs, so they aren't deleted when old (for use with sharing)
100
+ - Restructured Redis data model
101
+
102
+ - 2014-05-24: Version 0.0.10
103
+ - Correct context for error reporting
104
+ - Clean up backtraces of reported exceptions
105
+
106
+ - 2014-05-13: Version 0.0.9
107
+ - Stray debugger message removed, add window.location logging to js
108
+
109
+ - 2014-05-13: Version 0.0.8
110
+ - Fix pacakging binstubs by mistake
111
+
112
+ - 2014-05-13: Version 0.0.7
113
+ - Add support for javascript exception logging
114
+
115
+ - 2014-05-12: Version 0.0.6
116
+ - Add referer to env
117
+
118
+ - 2014-05-12: Version 0.0.5
119
+ - Feature: We now log basic rack environment with the messages
120
+ - Add your own with Logster.add_to_env(env, key, value)
121
+
122
+ - 2014-05-07: Version 0.0.4
123
+ - Feature: Ability to ignore patterns with Logster.store.ignore = [/regex/]
124
+ - Feature: Store backtraces, allow people to view them in the GUI
125
+
126
+ - 2014-05-07: Started changelog :)
127
+ - Report params in env tab
data/README.md CHANGED
@@ -94,131 +94,3 @@ Logster UI is built using [Ember.js](http://emberjs.com/)
94
94
  3. Commit your changes (`git commit -am 'Add some feature'`)
95
95
  4. Push to the branch (`git push origin my-new-feature`)
96
96
  5. Create a new Pull Request
97
-
98
- # CHANGELOG
99
-
100
- - 2017-10-27: Version 1.2.8
101
- - Fix: `Logster::Middleware::DebugExceptions` is passed a request in Rails 5 instead of the env.
102
-
103
- - 2017-01-30: Version 1.2.7
104
- - Feature: Add override_level to Logster::Logger allowing for threadsafe logger override
105
-
106
- - 2016-10-24: Version 1.2.6
107
- - Fix: Check if `Rails.env` is defined when using Logster in a none Rails project.
108
-
109
- - 2016-07-11: Version 1.2.5
110
- - Fix: Chained `Logster::Logger` logger now receives backtrace as well.
111
-
112
- - 2016-05-05: Version 1.2.4
113
- - Fix: XSS in log message show if attacker can inject script into ENV
114
-
115
- - 2016-05-05: Version 1.2.3
116
- - Fix: clear_all now also clears rate limits
117
- - Fix: protect against corrupt data in redis during clear
118
-
119
- - 2016-03-22: Version 1.2.2
120
- - Fix: Conflicting attributes and method name for `Logster::RedisStore#rate_limits`.
121
- - Fix: Rate limit checker was tracking limits too early. It should only track when a message has been bumped or saved.
122
-
123
- - 2016-03-22: Version 1.2.1
124
- - Feature: Add method to retrieve current rate from rate limiters.
125
- - Feature: Make `RedisStore#rate_limits` readable.
126
- - Feature: Make `RedisRateLimiter#callback` and `RedisRateLimiter#duration` readable.
127
-
128
- - 2016-03-18: Version 1.2.0
129
- - Fix: Move Redis configuration into RedisStore.
130
- - Feature: Allow `RedisStore#redis_prefix` to either be a String or a Proc.
131
-
132
- - 2016-02-11: Version 1.1.1
133
- - Feature: Error rate can now be tracked in one minute and one hour buckets.
134
-
135
- - 2015-11-27: Version 1.0.1
136
- - New assets and logster logo
137
- - Added favicon
138
- - Added title
139
- - Use rails logger instead of invoking store
140
-
141
- - 2015-08-18: Version 0.9.9
142
- - This marks the largest release of Logster to date, it has been in production use for quite a while, hence the version bump.
143
- - Feature: automatically group errors in production mode, can be manually controlled via Logster.config.allow_grouping
144
- - Feature: automatically track application version, can be manually controlled via Logster.config.application_version
145
- - Feature: Font Awesome icons used throughout
146
- - Feature: Ember upgrade to 1.13
147
- - Feature: you can now "solve" a class of errors, if error has an application_version and backtrace. Once an error is solved it will no longer be reported for the "solved" application_versions
148
- - Feature: allow users to delete a single error
149
- - UX: use table for env
150
- - Feature: display "protected" state of message in list
151
- - Feature: use local times as opposed to relative times in time column
152
- - UX: use Google Roboto font as opposed to system fonts
153
- - UX: remove pointless titles from log table
154
- - Feature: If Logster is in a background tab only poll once every 60 seconds (as opposed to 3)
155
- - Fix: protect/unprotect redirected to show page
156
-
157
- - 2015-06-16: Version 0.8.3
158
- - Chained loggers now respect chain ignore
159
- - Add hostname and process_id to env on all messages
160
-
161
- - 2015-06-10: Version 0.8.2
162
- - Add hostname and process_id to env on all messages
163
-
164
- - 2015-05-01: Version 0.8.1
165
- - Don't crash out logging routine if redis is down or stderr is closed
166
-
167
- - 2015-04-16: Version 0.8.0
168
- - Improve formatting of /show page
169
- - Big version bump cause it is quite stable
170
-
171
- - 2015-02-27: Version 0.1.7
172
- - Fix invalid request on ?test
173
-
174
- - 2014-08-05: Version 0.1.3
175
- - Automatically include ignore filter
176
-
177
- - 2014-08-13: Version 0.1.6
178
- - Simplify install process
179
- - Fix crash on 404 in /logs dir
180
-
181
- - 2014-08-10: Version 0.1.5
182
- - Fix crash in Rails 3
183
-
184
- - 2014-08-08: Version 0.1.4
185
- - Fix crash in ignore filter
186
-
187
- - 2014-07-17: Version 0.1.1
188
- - Refactored report method into base_store.rb - will be easier to make a new log store
189
- - Add link in UI to clear all (non-protected) logs
190
- - Add example of submitting logs from Sidekiq jobs
191
- - Show Protect/Share links on all tabs
192
- - Render hashes provided via Logster.add_to_env
193
-
194
- - 2014-07-04: Version 0.0.12
195
- - Feature: Able to share logs, at /logs/show/(hexdigits)
196
- - Add protecting logs, so they aren't deleted when old (for use with sharing)
197
- - Restructured Redis data model
198
-
199
- - 2014-05-24: Version 0.0.10
200
- - Correct context for error reporting
201
- - Clean up backtraces of reported exceptions
202
-
203
- - 2014-05-13: Version 0.0.9
204
- - Stray debugger message removed, add window.location logging to js
205
-
206
- - 2014-05-13: Version 0.0.8
207
- - Fix pacakging binstubs by mistake
208
-
209
- - 2014-05-13: Version 0.0.7
210
- - Add support for javascript exception logging
211
-
212
- - 2014-05-12: Version 0.0.6
213
- - Add referer to env
214
-
215
- - 2014-05-12: Version 0.0.5
216
- - Feature: We now log basic rack environment with the messages
217
- - Add your own with Logster.add_to_env(env, key, value)
218
-
219
- - 2014-05-07: Version 0.0.4
220
- - Feature: Ability to ignore patterns with Logster.store.ignore = [/regex/]
221
- - Feature: Store backtraces, allow people to view them in the GUI
222
-
223
- - 2014-05-07: Started changelog :)
224
- - Report params in env tab
@@ -270,6 +270,11 @@ App.MessageCollection = Em.Object.extend({
270
270
  App.ajax("/messages.json", {
271
271
  data: data
272
272
  }).success(function(data) {
273
+ // guard against race: ensure the results we're trying to apply
274
+ // match the current search terms
275
+ if (Ember.compare(data.filter, self.get('filter')) != 0) { return; }
276
+ if (Ember.compare(data.search, self.get('search')) != 0) { return; }
277
+
273
278
  if (data.messages.length > 0) {
274
279
  var newRows = self.toMessages(data.messages);
275
280
  var messages = self.get("messages");
@@ -141,7 +141,9 @@ module Logster
141
141
 
142
142
  payload = {
143
143
  messages: @store.latest(opts),
144
- total: @store.count
144
+ total: @store.count,
145
+ search: req['search'] || '',
146
+ filter: filter || '',
145
147
  }
146
148
 
147
149
  json = JSON.generate(payload)
@@ -1,3 +1,3 @@
1
1
  module Logster
2
- VERSION = "1.2.8"
2
+ VERSION = "1.2.9"
3
3
  end
@@ -36,6 +36,24 @@ class TestViewer < Minitest::Test
36
36
  assert_equal("/hello/world",viewer.send(:resolve_path, "/logsie/hello/world"))
37
37
  end
38
38
 
39
+ def test_search_raceguard_s
40
+ _,_,result_j = viewer.call(Rack::MockRequest.env_for("/logsie/messages.json?search=searchkey"))
41
+ result = JSON.parse(result_j.first)
42
+ assert_equal('searchkey', result['search'])
43
+ end
44
+
45
+ def test_search_raceguard_sr
46
+ _,_,result_j = viewer.call(Rack::MockRequest.env_for("/logsie/messages.json?search=/regex/&regex_search=true"))
47
+ result = JSON.parse(result_j.first)
48
+ assert_equal('/regex/', result['search'])
49
+ end
50
+
51
+ def test_search_raceguard_f
52
+ _,_,result_j = viewer.call(Rack::MockRequest.env_for("/logsie/messages.json?filter=0_1_2_3_4"))
53
+ result = JSON.parse(result_j.first)
54
+ assert_equal([0,1,2,3,4], result['filter'])
55
+ end
56
+
39
57
  def test_assets
40
58
  env = {}
41
59
  env["PATH_INFO"] = "/logsie/javascript/external/jquery.min.js"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - UI for viewing logs in Rack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-27 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,6 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
119
  - ".travis.yml"
120
+ - CHANGELOG.md
120
121
  - Gemfile
121
122
  - Guardfile
122
123
  - LICENSE.txt