logster 2.10.1 → 2.11.0

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
  SHA256:
3
- metadata.gz: d7d7bbfdfabe4f8bb2da6f382313fb9c26b7f3cf1a4ecfa60f309e82d0775fe2
4
- data.tar.gz: 44a8763ee338b38fdb5588c131d34a29b592e4f390d68fa22e3801dde42a8455
3
+ metadata.gz: 1a50dc52176adcb2a02cda4eb305c2e48881eb343636cafef38a71f6d825ea58
4
+ data.tar.gz: bf6998269eeb727ad3cd41c006af4c13296c24e1b7866ab7b2a111966b603526
5
5
  SHA512:
6
- metadata.gz: 32026ddb7f0db0585faa40de68c30aa9d9a64390d90c575074cd5cf3e96c14e2f5330416bcfce78e3795539b4317883dfb0def7dbf8f7009555ac992bb6cbc6b
7
- data.tar.gz: 6c793ef57adcd2913d648147e5bd888d22530081839c3c335f3777cd2e5c28304e4c8545a23cef6c6ca2152e8b92e987b8660864dd0264b7005310261b467922
6
+ metadata.gz: 03b7d22d2c78668667cd253861673c776eb4ab43e4ce5a36afed3f3df62e5096c77e20f8a77fc23e776258033bd609c06982ad301a89f3ead04a357f4f89e865
7
+ data.tar.gz: 4fa248be7a4462e6778228e7988bc86a1cb05e4e4ee714e5a265042afa8a1baa99af403ccb2423ee9f20dc3e3708bff1199983883128b567accd9ccb02c1105b
@@ -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@v2
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@v2
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' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
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,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ - 2022-03-12: 2.11.0
4
+
5
+ - FEATURE: Improve support for logging error objects (#153)
6
+
3
7
  - 2021-11-26: 2.10.1
4
8
 
5
9
  - UX: More dark-mode related changes
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 `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.
137
- 5. Once you're done making changes, run `./build_client_app.sh` to make and copy a production build to the assets folder.
138
- 6. Commit your changes (`git commit -am 'Add some feature'`)
139
- 7. Push to the branch (`git push origin my-new-feature`)
140
- 8. Create a new Pull Request
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+51cd06db"})
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"})
@@ -4713,34 +4713,6 @@
4713
4713
  "node": ">=4"
4714
4714
  }
4715
4715
  },
4716
- "node_modules/@embroider/core/node_modules/sync-disk-cache": {
4717
- "version": "1.3.4",
4718
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
4719
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
4720
- "dev": true,
4721
- "dependencies": {
4722
- "debug": "^2.1.3",
4723
- "heimdalljs": "^0.2.3",
4724
- "mkdirp": "^0.5.0",
4725
- "rimraf": "^2.2.8",
4726
- "username-sync": "^1.0.2"
4727
- }
4728
- },
4729
- "node_modules/@embroider/core/node_modules/sync-disk-cache/node_modules/debug": {
4730
- "version": "2.6.9",
4731
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
4732
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
4733
- "dev": true,
4734
- "dependencies": {
4735
- "ms": "2.0.0"
4736
- }
4737
- },
4738
- "node_modules/@embroider/core/node_modules/sync-disk-cache/node_modules/ms": {
4739
- "version": "2.0.0",
4740
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
4741
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
4742
- "dev": true
4743
- },
4744
4716
  "node_modules/@embroider/core/node_modules/to-fast-properties": {
4745
4717
  "version": "2.0.0",
4746
4718
  "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
@@ -4750,12 +4722,6 @@
4750
4722
  "node": ">=4"
4751
4723
  }
4752
4724
  },
4753
- "node_modules/@embroider/core/node_modules/username-sync": {
4754
- "version": "1.0.2",
4755
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
4756
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
4757
- "dev": true
4758
- },
4759
4725
  "node_modules/@embroider/core/node_modules/walk-sync": {
4760
4726
  "version": "1.1.4",
4761
4727
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-1.1.4.tgz",
@@ -5851,15 +5817,19 @@
5851
5817
  "dev": true
5852
5818
  },
5853
5819
  "node_modules/ajv": {
5854
- "version": "6.11.0",
5855
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz",
5856
- "integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==",
5820
+ "version": "6.12.6",
5821
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
5822
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
5857
5823
  "dev": true,
5858
5824
  "dependencies": {
5859
5825
  "fast-deep-equal": "^3.1.1",
5860
5826
  "fast-json-stable-stringify": "^2.0.0",
5861
5827
  "json-schema-traverse": "^0.4.1",
5862
5828
  "uri-js": "^4.2.2"
5829
+ },
5830
+ "funding": {
5831
+ "type": "github",
5832
+ "url": "https://github.com/sponsors/epoberezkin"
5863
5833
  }
5864
5834
  },
5865
5835
  "node_modules/ajv-errors": {
@@ -6832,12 +6802,6 @@
6832
6802
  "node": "6.* || 8.* || >= 10.*"
6833
6803
  }
6834
6804
  },
6835
- "node_modules/babel-plugin-ember-modules-api-polyfill/node_modules/ember-rfc176-data": {
6836
- "version": "0.3.9",
6837
- "resolved": "https://registry.npmjs.org/ember-rfc176-data/-/ember-rfc176-data-0.3.9.tgz",
6838
- "integrity": "sha512-EiTo5YQS0Duy0xp9gCP8ekzv9vxirNi7MnIB4zWs+thtWp/mEKgf5mkiiLU2+oo8C5DuavVHhoPQDmyxh8Io1Q==",
6839
- "dev": true
6840
- },
6841
6805
  "node_modules/babel-plugin-filter-imports": {
6842
6806
  "version": "3.0.0",
6843
6807
  "resolved": "https://registry.npmjs.org/babel-plugin-filter-imports/-/babel-plugin-filter-imports-3.0.0.tgz",
@@ -8112,25 +8076,6 @@
8112
8076
  "node": "6.* || >= 7.*"
8113
8077
  }
8114
8078
  },
8115
- "node_modules/broccoli-lint-eslint/node_modules/sync-disk-cache": {
8116
- "version": "1.3.4",
8117
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
8118
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
8119
- "dev": true,
8120
- "dependencies": {
8121
- "debug": "^2.1.3",
8122
- "heimdalljs": "^0.2.3",
8123
- "mkdirp": "^0.5.0",
8124
- "rimraf": "^2.2.8",
8125
- "username-sync": "^1.0.2"
8126
- }
8127
- },
8128
- "node_modules/broccoli-lint-eslint/node_modules/username-sync": {
8129
- "version": "1.0.2",
8130
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
8131
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
8132
- "dev": true
8133
- },
8134
8079
  "node_modules/broccoli-lint-eslint/node_modules/walk-sync": {
8135
8080
  "version": "1.1.4",
8136
8081
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-1.1.4.tgz",
@@ -8660,34 +8605,6 @@
8660
8605
  "node": ">=4"
8661
8606
  }
8662
8607
  },
8663
- "node_modules/broccoli-stew/node_modules/sync-disk-cache": {
8664
- "version": "1.3.4",
8665
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
8666
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
8667
- "dev": true,
8668
- "dependencies": {
8669
- "debug": "^2.1.3",
8670
- "heimdalljs": "^0.2.3",
8671
- "mkdirp": "^0.5.0",
8672
- "rimraf": "^2.2.8",
8673
- "username-sync": "^1.0.2"
8674
- }
8675
- },
8676
- "node_modules/broccoli-stew/node_modules/sync-disk-cache/node_modules/debug": {
8677
- "version": "2.6.9",
8678
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
8679
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
8680
- "dev": true,
8681
- "dependencies": {
8682
- "ms": "2.0.0"
8683
- }
8684
- },
8685
- "node_modules/broccoli-stew/node_modules/username-sync": {
8686
- "version": "1.0.2",
8687
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
8688
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
8689
- "dev": true
8690
- },
8691
8608
  "node_modules/broccoli-stew/node_modules/walk-sync": {
8692
8609
  "version": "1.1.4",
8693
8610
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-1.1.4.tgz",
@@ -13562,19 +13479,6 @@
13562
13479
  "node": ">=4"
13563
13480
  }
13564
13481
  },
13565
- "node_modules/ember-cli/node_modules/sync-disk-cache": {
13566
- "version": "1.3.4",
13567
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
13568
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
13569
- "dev": true,
13570
- "dependencies": {
13571
- "debug": "^2.1.3",
13572
- "heimdalljs": "^0.2.3",
13573
- "mkdirp": "^0.5.0",
13574
- "rimraf": "^2.2.8",
13575
- "username-sync": "^1.0.2"
13576
- }
13577
- },
13578
13482
  "node_modules/ember-cli/node_modules/tree-sync": {
13579
13483
  "version": "2.0.0",
13580
13484
  "resolved": "https://registry.npmjs.org/tree-sync/-/tree-sync-2.0.0.tgz",
@@ -13613,12 +13517,6 @@
13613
13517
  "matcher-collection": "^1.0.0"
13614
13518
  }
13615
13519
  },
13616
- "node_modules/ember-cli/node_modules/username-sync": {
13617
- "version": "1.0.2",
13618
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
13619
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
13620
- "dev": true
13621
- },
13622
13520
  "node_modules/ember-cli/node_modules/walk-sync": {
13623
13521
  "version": "2.0.2",
13624
13522
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-2.0.2.tgz",
@@ -16397,32 +16295,25 @@
16397
16295
  }
16398
16296
  },
16399
16297
  "node_modules/follow-redirects": {
16400
- "version": "1.9.0",
16401
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.9.0.tgz",
16402
- "integrity": "sha512-CRcPzsSIbXyVDl0QI01muNDu69S8trU4jArW9LpOt2WtC6LyUJetcIrmfHsRBx7/Jb6GHJUiuqyYxPooFfNt6A==",
16298
+ "version": "1.14.8",
16299
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz",
16300
+ "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==",
16403
16301
  "dev": true,
16404
- "dependencies": {
16405
- "debug": "^3.0.0"
16406
- },
16302
+ "funding": [
16303
+ {
16304
+ "type": "individual",
16305
+ "url": "https://github.com/sponsors/RubenVerborgh"
16306
+ }
16307
+ ],
16407
16308
  "engines": {
16408
16309
  "node": ">=4.0"
16310
+ },
16311
+ "peerDependenciesMeta": {
16312
+ "debug": {
16313
+ "optional": true
16314
+ }
16409
16315
  }
16410
16316
  },
16411
- "node_modules/follow-redirects/node_modules/debug": {
16412
- "version": "3.2.6",
16413
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
16414
- "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
16415
- "dev": true,
16416
- "dependencies": {
16417
- "ms": "^2.1.1"
16418
- }
16419
- },
16420
- "node_modules/follow-redirects/node_modules/ms": {
16421
- "version": "2.1.2",
16422
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
16423
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
16424
- "dev": true
16425
- },
16426
16317
  "node_modules/for-in": {
16427
16318
  "version": "1.0.2",
16428
16319
  "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
@@ -18026,14 +17917,15 @@
18026
17917
  "dev": true
18027
17918
  },
18028
17919
  "node_modules/handlebars": {
18029
- "version": "4.5.3",
18030
- "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz",
18031
- "integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==",
17920
+ "version": "4.7.7",
17921
+ "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz",
17922
+ "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==",
18032
17923
  "dev": true,
18033
17924
  "dependencies": {
17925
+ "minimist": "^1.2.5",
18034
17926
  "neo-async": "^2.6.0",
18035
- "optimist": "^0.6.1",
18036
- "source-map": "^0.6.1"
17927
+ "source-map": "^0.6.1",
17928
+ "wordwrap": "^1.0.0"
18037
17929
  },
18038
17930
  "bin": {
18039
17931
  "handlebars": "bin/handlebars"
@@ -18045,6 +17937,12 @@
18045
17937
  "uglify-js": "^3.1.4"
18046
17938
  }
18047
17939
  },
17940
+ "node_modules/handlebars/node_modules/minimist": {
17941
+ "version": "1.2.5",
17942
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
17943
+ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
17944
+ "dev": true
17945
+ },
18048
17946
  "node_modules/handlebars/node_modules/source-map": {
18049
17947
  "version": "0.6.1",
18050
17948
  "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
@@ -18054,6 +17952,12 @@
18054
17952
  "node": ">=0.10.0"
18055
17953
  }
18056
17954
  },
17955
+ "node_modules/handlebars/node_modules/wordwrap": {
17956
+ "version": "1.0.0",
17957
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
17958
+ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=",
17959
+ "dev": true
17960
+ },
18057
17961
  "node_modules/har-schema": {
18058
17962
  "version": "2.0.0",
18059
17963
  "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
@@ -19343,9 +19247,9 @@
19343
19247
  }
19344
19248
  },
19345
19249
  "node_modules/lodash": {
19346
- "version": "4.17.19",
19347
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
19348
- "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
19250
+ "version": "4.17.21",
19251
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
19252
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
19349
19253
  "dev": true
19350
19254
  },
19351
19255
  "node_modules/lodash._baseassign": {
@@ -20325,7 +20229,7 @@
20325
20229
  },
20326
20230
  "node_modules/mkdirp": {
20327
20231
  "version": "0.5.1",
20328
- "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
20232
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
20329
20233
  "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
20330
20234
  "dev": true,
20331
20235
  "dependencies": {
@@ -20369,9 +20273,9 @@
20369
20273
  }
20370
20274
  },
20371
20275
  "node_modules/mout": {
20372
- "version": "1.2.2",
20373
- "resolved": "https://registry.npmjs.org/mout/-/mout-1.2.2.tgz",
20374
- "integrity": "sha512-w0OUxFEla6z3d7sVpMZGBCpQvYh8PHS1wZ6Wu9GNKHMpAHWJ0if0LsQZh3DlOqw55HlhJEOMLpFnwtxp99Y5GA==",
20276
+ "version": "1.2.3",
20277
+ "resolved": "https://registry.npmjs.org/mout/-/mout-1.2.3.tgz",
20278
+ "integrity": "sha512-vtE+eZcSj/sBkIp6gxB87MznryWP+gHIp0XX9SKrzA5TAkvz6y7VTuNruBjYdJozd8NY5i9XVIsn8cn3SwNjzg==",
20375
20279
  "dev": true
20376
20280
  },
20377
20281
  "node_modules/move-concurrently": {
@@ -23264,12 +23168,24 @@
23264
23168
  }
23265
23169
  },
23266
23170
  "node_modules/socket.io/node_modules/ws": {
23267
- "version": "7.4.2",
23268
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.2.tgz",
23269
- "integrity": "sha512-T4tewALS3+qsrpGI/8dqNMLIVdq/g/85U98HPMa6F0m6xTbvhXU6RCQLqPH3+SlomNV/LdY6RXEbBpMH6EOJnA==",
23171
+ "version": "7.4.6",
23172
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
23173
+ "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
23270
23174
  "dev": true,
23271
23175
  "engines": {
23272
23176
  "node": ">=8.3.0"
23177
+ },
23178
+ "peerDependencies": {
23179
+ "bufferutil": "^4.0.1",
23180
+ "utf-8-validate": "^5.0.2"
23181
+ },
23182
+ "peerDependenciesMeta": {
23183
+ "bufferutil": {
23184
+ "optional": true
23185
+ },
23186
+ "utf-8-validate": {
23187
+ "optional": true
23188
+ }
23273
23189
  }
23274
23190
  },
23275
23191
  "node_modules/sort-keys": {
@@ -25321,9 +25237,9 @@
25321
25237
  }
25322
25238
  },
25323
25239
  "node_modules/ws": {
25324
- "version": "6.2.1",
25325
- "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz",
25326
- "integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==",
25240
+ "version": "6.2.2",
25241
+ "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
25242
+ "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
25327
25243
  "dev": true,
25328
25244
  "dependencies": {
25329
25245
  "async-limiter": "~1.0.0"
@@ -29790,48 +29706,12 @@
29790
29706
  "has-flag": "^3.0.0"
29791
29707
  }
29792
29708
  },
29793
- "sync-disk-cache": {
29794
- "version": "1.3.4",
29795
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
29796
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
29797
- "dev": true,
29798
- "requires": {
29799
- "debug": "^2.1.3",
29800
- "heimdalljs": "^0.2.3",
29801
- "mkdirp": "^0.5.0",
29802
- "rimraf": "^2.2.8",
29803
- "username-sync": "^1.0.2"
29804
- },
29805
- "dependencies": {
29806
- "debug": {
29807
- "version": "2.6.9",
29808
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
29809
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
29810
- "dev": true,
29811
- "requires": {
29812
- "ms": "2.0.0"
29813
- }
29814
- },
29815
- "ms": {
29816
- "version": "2.0.0",
29817
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
29818
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
29819
- "dev": true
29820
- }
29821
- }
29822
- },
29823
29709
  "to-fast-properties": {
29824
29710
  "version": "2.0.0",
29825
29711
  "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
29826
29712
  "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=",
29827
29713
  "dev": true
29828
29714
  },
29829
- "username-sync": {
29830
- "version": "1.0.2",
29831
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
29832
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
29833
- "dev": true
29834
- },
29835
29715
  "walk-sync": {
29836
29716
  "version": "1.1.4",
29837
29717
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-1.1.4.tgz",
@@ -30835,9 +30715,9 @@
30835
30715
  "dev": true
30836
30716
  },
30837
30717
  "ajv": {
30838
- "version": "6.11.0",
30839
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.11.0.tgz",
30840
- "integrity": "sha512-nCprB/0syFYy9fVYU1ox1l2KN8S9I+tziH8D4zdZuLT3N6RMlGSGt5FSTpAiHB/Whv8Qs1cWHma1aMKZyaHRKA==",
30718
+ "version": "6.12.6",
30719
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
30720
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
30841
30721
  "dev": true,
30842
30722
  "requires": {
30843
30723
  "fast-deep-equal": "^3.1.1",
@@ -31714,14 +31594,6 @@
31714
31594
  "dev": true,
31715
31595
  "requires": {
31716
31596
  "ember-rfc176-data": "^0.3.9"
31717
- },
31718
- "dependencies": {
31719
- "ember-rfc176-data": {
31720
- "version": "0.3.9",
31721
- "resolved": "https://registry.npmjs.org/ember-rfc176-data/-/ember-rfc176-data-0.3.9.tgz",
31722
- "integrity": "sha512-EiTo5YQS0Duy0xp9gCP8ekzv9vxirNi7MnIB4zWs+thtWp/mEKgf5mkiiLU2+oo8C5DuavVHhoPQDmyxh8Io1Q==",
31723
- "dev": true
31724
- }
31725
31597
  }
31726
31598
  },
31727
31599
  "babel-plugin-filter-imports": {
@@ -32936,25 +32808,6 @@
32936
32808
  "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==",
32937
32809
  "dev": true
32938
32810
  },
32939
- "sync-disk-cache": {
32940
- "version": "1.3.4",
32941
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
32942
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
32943
- "dev": true,
32944
- "requires": {
32945
- "debug": "^2.1.3",
32946
- "heimdalljs": "^0.2.3",
32947
- "mkdirp": "^0.5.0",
32948
- "rimraf": "^2.2.8",
32949
- "username-sync": "^1.0.2"
32950
- }
32951
- },
32952
- "username-sync": {
32953
- "version": "1.0.2",
32954
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
32955
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
32956
- "dev": true
32957
- },
32958
32811
  "walk-sync": {
32959
32812
  "version": "1.1.4",
32960
32813
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-1.1.4.tgz",
@@ -33444,36 +33297,6 @@
33444
33297
  "has-flag": "^3.0.0"
33445
33298
  }
33446
33299
  },
33447
- "sync-disk-cache": {
33448
- "version": "1.3.4",
33449
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
33450
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
33451
- "dev": true,
33452
- "requires": {
33453
- "debug": "^2.1.3",
33454
- "heimdalljs": "^0.2.3",
33455
- "mkdirp": "^0.5.0",
33456
- "rimraf": "^2.2.8",
33457
- "username-sync": "^1.0.2"
33458
- },
33459
- "dependencies": {
33460
- "debug": {
33461
- "version": "2.6.9",
33462
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
33463
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
33464
- "dev": true,
33465
- "requires": {
33466
- "ms": "2.0.0"
33467
- }
33468
- }
33469
- }
33470
- },
33471
- "username-sync": {
33472
- "version": "1.0.2",
33473
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
33474
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
33475
- "dev": true
33476
- },
33477
33300
  "walk-sync": {
33478
33301
  "version": "1.1.4",
33479
33302
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-1.1.4.tgz",
@@ -36069,19 +35892,6 @@
36069
35892
  "has-flag": "^3.0.0"
36070
35893
  }
36071
35894
  },
36072
- "sync-disk-cache": {
36073
- "version": "1.3.4",
36074
- "resolved": "https://registry.npmjs.org/sync-disk-cache/-/sync-disk-cache-1.3.4.tgz",
36075
- "integrity": "sha512-GlkGeM81GPPEKz/lH7QUTbvqLq7K/IUTuaKDSMulP9XQ42glqNJIN/RKgSOw4y8vxL1gOVvj+W7ruEO4s36eCw==",
36076
- "dev": true,
36077
- "requires": {
36078
- "debug": "^2.1.3",
36079
- "heimdalljs": "^0.2.3",
36080
- "mkdirp": "^0.5.0",
36081
- "rimraf": "^2.2.8",
36082
- "username-sync": "^1.0.2"
36083
- }
36084
- },
36085
35895
  "tree-sync": {
36086
35896
  "version": "2.0.0",
36087
35897
  "resolved": "https://registry.npmjs.org/tree-sync/-/tree-sync-2.0.0.tgz",
@@ -36119,12 +35929,6 @@
36119
35929
  }
36120
35930
  }
36121
35931
  },
36122
- "username-sync": {
36123
- "version": "1.0.2",
36124
- "resolved": "https://registry.npmjs.org/username-sync/-/username-sync-1.0.2.tgz",
36125
- "integrity": "sha512-ayNkOJdoNSGNDBE46Nkc+l6IXmeugbzahZLSMkwvgRWv5y5ZqNY2IrzcgmkR4z32sj1W3tM3TuTUMqkqBzO+RA==",
36126
- "dev": true
36127
- },
36128
35932
  "walk-sync": {
36129
35933
  "version": "2.0.2",
36130
35934
  "resolved": "https://registry.npmjs.org/walk-sync/-/walk-sync-2.0.2.tgz",
@@ -40156,30 +39960,10 @@
40156
39960
  }
40157
39961
  },
40158
39962
  "follow-redirects": {
40159
- "version": "1.9.0",
40160
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.9.0.tgz",
40161
- "integrity": "sha512-CRcPzsSIbXyVDl0QI01muNDu69S8trU4jArW9LpOt2WtC6LyUJetcIrmfHsRBx7/Jb6GHJUiuqyYxPooFfNt6A==",
40162
- "dev": true,
40163
- "requires": {
40164
- "debug": "^3.0.0"
40165
- },
40166
- "dependencies": {
40167
- "debug": {
40168
- "version": "3.2.6",
40169
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
40170
- "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
40171
- "dev": true,
40172
- "requires": {
40173
- "ms": "^2.1.1"
40174
- }
40175
- },
40176
- "ms": {
40177
- "version": "2.1.2",
40178
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
40179
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
40180
- "dev": true
40181
- }
40182
- }
39963
+ "version": "1.14.8",
39964
+ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz",
39965
+ "integrity": "sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA==",
39966
+ "dev": true
40183
39967
  },
40184
39968
  "for-in": {
40185
39969
  "version": "1.0.2",
@@ -41449,22 +41233,35 @@
41449
41233
  "dev": true
41450
41234
  },
41451
41235
  "handlebars": {
41452
- "version": "4.5.3",
41453
- "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz",
41454
- "integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==",
41236
+ "version": "4.7.7",
41237
+ "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz",
41238
+ "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==",
41455
41239
  "dev": true,
41456
41240
  "requires": {
41241
+ "minimist": "^1.2.5",
41457
41242
  "neo-async": "^2.6.0",
41458
- "optimist": "^0.6.1",
41459
41243
  "source-map": "^0.6.1",
41460
- "uglify-js": "^3.1.4"
41244
+ "uglify-js": "^3.1.4",
41245
+ "wordwrap": "^1.0.0"
41461
41246
  },
41462
41247
  "dependencies": {
41248
+ "minimist": {
41249
+ "version": "1.2.5",
41250
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
41251
+ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
41252
+ "dev": true
41253
+ },
41463
41254
  "source-map": {
41464
41255
  "version": "0.6.1",
41465
41256
  "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
41466
41257
  "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
41467
41258
  "dev": true
41259
+ },
41260
+ "wordwrap": {
41261
+ "version": "1.0.0",
41262
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
41263
+ "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=",
41264
+ "dev": true
41468
41265
  }
41469
41266
  }
41470
41267
  },
@@ -42544,9 +42341,9 @@
42544
42341
  }
42545
42342
  },
42546
42343
  "lodash": {
42547
- "version": "4.17.19",
42548
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz",
42549
- "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==",
42344
+ "version": "4.17.21",
42345
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
42346
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
42550
42347
  "dev": true
42551
42348
  },
42552
42349
  "lodash._baseassign": {
@@ -43452,7 +43249,7 @@
43452
43249
  },
43453
43250
  "mkdirp": {
43454
43251
  "version": "0.5.1",
43455
- "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
43252
+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
43456
43253
  "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
43457
43254
  "dev": true,
43458
43255
  "requires": {
@@ -43484,9 +43281,9 @@
43484
43281
  }
43485
43282
  },
43486
43283
  "mout": {
43487
- "version": "1.2.2",
43488
- "resolved": "https://registry.npmjs.org/mout/-/mout-1.2.2.tgz",
43489
- "integrity": "sha512-w0OUxFEla6z3d7sVpMZGBCpQvYh8PHS1wZ6Wu9GNKHMpAHWJ0if0LsQZh3DlOqw55HlhJEOMLpFnwtxp99Y5GA==",
43284
+ "version": "1.2.3",
43285
+ "resolved": "https://registry.npmjs.org/mout/-/mout-1.2.3.tgz",
43286
+ "integrity": "sha512-vtE+eZcSj/sBkIp6gxB87MznryWP+gHIp0XX9SKrzA5TAkvz6y7VTuNruBjYdJozd8NY5i9XVIsn8cn3SwNjzg==",
43490
43287
  "dev": true
43491
43288
  },
43492
43289
  "move-concurrently": {
@@ -45915,10 +45712,11 @@
45915
45712
  }
45916
45713
  },
45917
45714
  "ws": {
45918
- "version": "7.4.2",
45919
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.2.tgz",
45920
- "integrity": "sha512-T4tewALS3+qsrpGI/8dqNMLIVdq/g/85U98HPMa6F0m6xTbvhXU6RCQLqPH3+SlomNV/LdY6RXEbBpMH6EOJnA==",
45921
- "dev": true
45715
+ "version": "7.4.6",
45716
+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz",
45717
+ "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==",
45718
+ "dev": true,
45719
+ "requires": {}
45922
45720
  }
45923
45721
  }
45924
45722
  },
@@ -47711,9 +47509,9 @@
47711
47509
  }
47712
47510
  },
47713
47511
  "ws": {
47714
- "version": "6.2.1",
47715
- "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz",
47716
- "integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==",
47512
+ "version": "6.2.2",
47513
+ "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
47514
+ "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
47717
47515
  "dev": true,
47718
47516
  "requires": {
47719
47517
  "async-limiter": "~1.0.0"
@@ -74,9 +74,13 @@ module Logster
74
74
  # own methods don't show up as the first few frames in the backtrace
75
75
  if !opts || !opts.key?(:backtrace)
76
76
  opts ||= {}
77
- backtrace = caller_locations
78
- while backtrace.first.path.end_with?("/logger.rb")
79
- backtrace.shift
77
+ backtrace = message.backtrace if message.kind_of?(::Exception)
78
+ backtrace ||= progname.backtrace if progname.kind_of?(::Exception)
79
+ if !backtrace
80
+ backtrace = caller_locations
81
+ while backtrace.first.path.end_with?("/logger.rb")
82
+ backtrace.shift
83
+ end
80
84
  end
81
85
  backtrace = backtrace.join("\n")
82
86
  opts[:backtrace] = backtrace
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Logster
4
- VERSION = "2.10.1"
4
+ VERSION = "2.11.0"
5
5
  end
@@ -106,4 +106,26 @@ class TestLogger < Minitest::Test
106
106
  @logger.skip_store = true
107
107
  @logger.warn("testing")
108
108
  end
109
+
110
+ def test_logging_an_error_gets_backtrace_from_the_error
111
+ exception = error_instance(Exception)
112
+ std_err = error_instance(StandardError)
113
+ custom_err = error_instance(Class.new(StandardError))
114
+
115
+ @logger.error(exception)
116
+ @logger.fatal(std_err)
117
+ @logger.fatal(custom_err)
118
+
119
+ assert_equal exception.backtrace.join("\n"), @store.calls[0][3][:backtrace]
120
+ assert_equal std_err.backtrace.join("\n"), @store.calls[1][3][:backtrace]
121
+ assert_equal custom_err.backtrace.join("\n"), @store.calls[2][3][:backtrace]
122
+ end
123
+
124
+ private
125
+
126
+ def error_instance(error_class)
127
+ raise error_class.new
128
+ rescue error_class => e
129
+ e
130
+ end
109
131
  end
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: 2.10.1
4
+ version: 2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler