logster 2.10.1 → 2.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -9
- data/CHANGELOG.md +11 -0
- data/README.md +6 -5
- data/Rakefile +1 -1
- data/assets/javascript/client-app.js +1 -1
- data/client-app/app/controllers/index.js +12 -8
- data/client-app/app/templates/index.hbs +1 -0
- data/client-app/package-lock.json +15831 -24435
- data/client-app/package.json +2 -1
- data/client-app/tests/unit/controllers/index-test.js +23 -5
- data/lib/logster/logger.rb +15 -16
- data/lib/logster/redis_store.rb +37 -36
- data/lib/logster/version.rb +1 -1
- data/test/logster/test_logger.rb +28 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac4fd2b906013693d1b76679876762a938c333642df5306c0e1c7b1e53c01e04
|
4
|
+
data.tar.gz: a6980fcc69d06ce88f821c83662400b5a17887a8896fd06df096a06c7cffa40f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea5f6d1da6046eb5cad955ac63b435ed98597769bf8da58c6fccac41ab48d4fb6bb06f0b25b8b993224e9f1940a60b4deed2750b55072d5be3b84d6abfe64cc7
|
7
|
+
data.tar.gz: 98cecbb8c155368f57d70482e57be3e04ef780c06c8c983255aed44e09a78af176bbe375f78b685788e6cf6c9748be51ff521a00d11075004bdedc424fe535a8
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,7 +4,6 @@ on:
|
|
4
4
|
pull_request:
|
5
5
|
push:
|
6
6
|
branches:
|
7
|
-
- master
|
8
7
|
- main
|
9
8
|
|
10
9
|
jobs:
|
@@ -19,14 +18,10 @@ jobs:
|
|
19
18
|
|
20
19
|
strategy:
|
21
20
|
matrix:
|
22
|
-
ruby:
|
23
|
-
- 2.5
|
24
|
-
- 2.6
|
25
|
-
- 2.7
|
26
|
-
- 3.0
|
21
|
+
ruby: ['2.6', '2.7', '3.0', '3.1']
|
27
22
|
|
28
23
|
steps:
|
29
|
-
- uses: actions/checkout@
|
24
|
+
- uses: actions/checkout@v3
|
30
25
|
|
31
26
|
- name: Setup ruby
|
32
27
|
uses: ruby/setup-ruby@v1
|
@@ -40,7 +35,7 @@ jobs:
|
|
40
35
|
- name: Tests
|
41
36
|
run: bundle exec rake test
|
42
37
|
|
43
|
-
- uses: actions/setup-node@
|
38
|
+
- uses: actions/setup-node@v3
|
44
39
|
with:
|
45
40
|
node-version: 16
|
46
41
|
cache: npm
|
@@ -55,7 +50,7 @@ jobs:
|
|
55
50
|
run: npm run lint
|
56
51
|
|
57
52
|
publish:
|
58
|
-
if: github.event_name == 'push' &&
|
53
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
59
54
|
needs: build
|
60
55
|
runs-on: ubuntu-latest
|
61
56
|
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,15 @@
|
|
1
1
|
# CHANGELOG
|
2
|
+
- 2022-04-28: 2.11.2
|
3
|
+
|
4
|
+
- FIX: store override level in thread local storage (Truffle Ruby compatability)
|
5
|
+
|
6
|
+
- 2022-04-21: 2.11.1
|
7
|
+
|
8
|
+
- FIX: Redis pipelining deprecation (#159)
|
9
|
+
|
10
|
+
- 2022-03-12: 2.11.0
|
11
|
+
|
12
|
+
- FEATURE: Improve support for logging error objects (#153)
|
2
13
|
|
3
14
|
- 2021-11-26: 2.10.1
|
4
15
|
|
data/README.md
CHANGED
@@ -133,8 +133,9 @@ Logster UI is built using [Ember.js](http://emberjs.com/)
|
|
133
133
|
1. Fork it ( https://github.com/discourse/logster/fork )
|
134
134
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
135
135
|
3. Run `cd client-app && npm install`
|
136
|
-
4. Run `
|
137
|
-
5.
|
138
|
-
6.
|
139
|
-
7.
|
140
|
-
8.
|
136
|
+
4. Run `cd website && bundle install`
|
137
|
+
5. Run `bundle exec rake client_dev` to start Sinatra server (port 9292) and Ember server (port 4200). Use Ember server for hot reload for client code.
|
138
|
+
6. Once you're done making changes, run `./build_client_app.sh` to make and copy a production build to the assets folder.
|
139
|
+
7. Commit your changes (`git commit -am 'Add some feature'`)
|
140
|
+
8. Push to the branch (`git push origin my-new-feature`)
|
141
|
+
9. Create a new Pull Request
|
data/Rakefile
CHANGED
@@ -13,7 +13,7 @@ desc "Starts Sinatra and Ember servers"
|
|
13
13
|
task :client_dev do
|
14
14
|
begin
|
15
15
|
pid = spawn("cd website && LOGSTER_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec rackup --host 0.0.0.0")
|
16
|
-
pid2 = spawn("cd client-app && ember s --proxy http://localhost:9292")
|
16
|
+
pid2 = spawn("cd client-app && npx ember s --proxy http://localhost:9292")
|
17
17
|
Process.wait pid
|
18
18
|
Process.wait pid2
|
19
19
|
rescue Interrupt => e
|
@@ -294,4 +294,4 @@ var t=Ember.HTMLBars.template({id:"QRu+EVou",block:'{"symbols":[],"statements":[
|
|
294
294
|
e.default=t})),define("client-app/templates/show",["exports"],(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
295
295
|
var t=Ember.HTMLBars.template({id:"ODDaTIqZ",block:'{"symbols":[],"statements":[[4,"link-to",null,[["class","route"],["recent-link","index"]],{"statements":[[0,"Recent"]],"parameters":[]},null],[0,"\\n\\n"],[7,"div",true],[10,"id","bottom-panel"],[10,"class","full"],[8],[0,"\\n "],[1,[28,"message-info",null,[["currentMessage","showTitle","envChangedAction","currentEnvPosition","actionsInMenu"],[[24,["model"]],"true",[28,"action",[[23,0,[]],"envChanged"],null],[24,["envPosition"]],false]]],false],[0,"\\n"],[9],[0,"\\n"]],"hasEval":false}',meta:{moduleName:"client-app/templates/show.hbs"}})
|
296
296
|
e.default=t})),define("client-app/config/environment",[],(function(){try{var e="client-app/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n={default:JSON.parse(decodeURIComponent(t))}
|
297
|
-
return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("client-app/app").default.create({name:"client-app",version:"0.0.0+
|
297
|
+
return Object.defineProperty(n,"__esModule",{value:!0}),n}catch(r){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("client-app/app").default.create({name:"client-app",version:"0.0.0+99c2ef5f"})
|
@@ -1,12 +1,8 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
ajax,
|
4
|
-
getLocalStorage,
|
5
|
-
setLocalStorage
|
6
|
-
} from "client-app/lib/utilities";
|
1
|
+
import { debounce } from "@ember/runloop";
|
7
2
|
import { computed } from "@ember/object";
|
3
|
+
import Controller from "@ember/controller";
|
4
|
+
import { ajax, getLocalStorage, setLocalStorage } from "client-app/lib/utilities";
|
8
5
|
import Preload from "client-app/lib/preload";
|
9
|
-
import { debounce } from "@ember/runloop";
|
10
6
|
|
11
7
|
export default Controller.extend({
|
12
8
|
showDebug: getLocalStorage("showDebug", false),
|
@@ -14,7 +10,7 @@ export default Controller.extend({
|
|
14
10
|
showWarn: getLocalStorage("showWarn", true),
|
15
11
|
showErr: getLocalStorage("showErr", true),
|
16
12
|
showFatal: getLocalStorage("showFatal", true),
|
17
|
-
search:
|
13
|
+
search: null,
|
18
14
|
queryParams: ["search"],
|
19
15
|
|
20
16
|
showSettings: computed(function() {
|
@@ -130,6 +126,14 @@ export default Controller.extend({
|
|
130
126
|
}
|
131
127
|
},
|
132
128
|
|
129
|
+
searchTerm: computed("search", function () {
|
130
|
+
if (this.search) {
|
131
|
+
this.doSearch(this.search)
|
132
|
+
return this.search;
|
133
|
+
}
|
134
|
+
return null;
|
135
|
+
}),
|
136
|
+
|
133
137
|
doSearch(term) {
|
134
138
|
this.model.set("search", term);
|
135
139
|
this.model.reload().then(() => this.model.updateSelectedRow());
|