logster 2.11.2 → 2.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/client-app/package-lock.json +13 -13
- data/client-app/package.json +1 -1
- data/lib/logster/message.rb +4 -1
- data/lib/logster/redis_store.rb +4 -4
- data/lib/logster/version.rb +1 -1
- 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: 6b0b28ee30c18ff2369e3ce67d5d08b4e78090fd14acf84f4880818f1a039dba
|
4
|
+
data.tar.gz: 9503cf60286d36dd8c7e3077dd362b81c5111923f57e2295fa6520f1aacae7f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0327869de6dcc319915a239a2a82b238f028f8f973fdb9170fa0e8f6549460bf4df3ff6b306a08a573bde6cfef42c08646b22b4ff06c372be15d0fde2c2728a
|
7
|
+
data.tar.gz: 3b0ab2e5f6b3cece6d1b4244f49cfc935a1987c19921a7c1d5c5b1e5acd1e4920894c9d7230d869092a16a56cacbbec531a2d990f594678afa953658bc620cc3
|
data/CHANGELOG.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
"version": "0.0.0",
|
10
10
|
"license": "MIT",
|
11
11
|
"dependencies": {
|
12
|
-
"moment": "~2.29.
|
12
|
+
"moment": "~2.29.4"
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
15
|
"@ember/optional-features": "^1.1.0",
|
@@ -16131,9 +16131,9 @@
|
|
16131
16131
|
}
|
16132
16132
|
},
|
16133
16133
|
"node_modules/moment": {
|
16134
|
-
"version": "2.29.
|
16135
|
-
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.
|
16136
|
-
"integrity": "sha512-
|
16134
|
+
"version": "2.29.4",
|
16135
|
+
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
|
16136
|
+
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
|
16137
16137
|
"engines": {
|
16138
16138
|
"node": "*"
|
16139
16139
|
}
|
@@ -19751,9 +19751,9 @@
|
|
19751
19751
|
}
|
19752
19752
|
},
|
19753
19753
|
"node_modules/terser": {
|
19754
|
-
"version": "4.
|
19755
|
-
"resolved": "https://registry.npmjs.org/terser/-/terser-4.
|
19756
|
-
"integrity": "sha512-
|
19754
|
+
"version": "4.8.1",
|
19755
|
+
"resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
|
19756
|
+
"integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==",
|
19757
19757
|
"dev": true,
|
19758
19758
|
"dependencies": {
|
19759
19759
|
"commander": "^2.20.0",
|
@@ -34834,9 +34834,9 @@
|
|
34834
34834
|
"dev": true
|
34835
34835
|
},
|
34836
34836
|
"moment": {
|
34837
|
-
"version": "2.29.
|
34838
|
-
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.
|
34839
|
-
"integrity": "sha512-
|
34837
|
+
"version": "2.29.4",
|
34838
|
+
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
|
34839
|
+
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
|
34840
34840
|
},
|
34841
34841
|
"morgan": {
|
34842
34842
|
"version": "1.9.1",
|
@@ -37907,9 +37907,9 @@
|
|
37907
37907
|
}
|
37908
37908
|
},
|
37909
37909
|
"terser": {
|
37910
|
-
"version": "4.
|
37911
|
-
"resolved": "https://registry.npmjs.org/terser/-/terser-4.
|
37912
|
-
"integrity": "sha512-
|
37910
|
+
"version": "4.8.1",
|
37911
|
+
"resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
|
37912
|
+
"integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==",
|
37913
37913
|
"dev": true,
|
37914
37914
|
"requires": {
|
37915
37915
|
"commander": "^2.20.0",
|
data/client-app/package.json
CHANGED
data/lib/logster/message.rb
CHANGED
@@ -81,8 +81,11 @@ module Logster
|
|
81
81
|
|
82
82
|
def self.hostname
|
83
83
|
@hostname ||= begin
|
84
|
-
command =
|
84
|
+
command = Logster.config.use_full_hostname ? `hostname -f` : `hostname`
|
85
85
|
command.strip!
|
86
|
+
command
|
87
|
+
rescue
|
88
|
+
"<unknown>"
|
86
89
|
end
|
87
90
|
end
|
88
91
|
|
data/lib/logster/redis_store.rb
CHANGED
@@ -318,11 +318,11 @@ module Logster
|
|
318
318
|
end
|
319
319
|
|
320
320
|
def insert_pattern(set_name, pattern)
|
321
|
-
@redis.sadd(set_name, pattern)
|
321
|
+
@redis.sadd(set_name, [pattern])
|
322
322
|
end
|
323
323
|
|
324
324
|
def remove_pattern(set_name, pattern)
|
325
|
-
@redis.srem(set_name, pattern)
|
325
|
+
@redis.srem(set_name, [pattern])
|
326
326
|
end
|
327
327
|
|
328
328
|
def get_patterns(set_name)
|
@@ -434,9 +434,9 @@ module Logster
|
|
434
434
|
redis.hset(hash_key, message.key, message.to_json(exclude_env: true))
|
435
435
|
push_env(message.key, message.env, redis: redis) if save_env
|
436
436
|
if message.protected
|
437
|
-
redis.sadd(protected_key, message.key)
|
437
|
+
redis.sadd(protected_key, [message.key])
|
438
438
|
else
|
439
|
-
redis.srem(protected_key, message.key)
|
439
|
+
redis.srem(protected_key, [message.key])
|
440
440
|
end
|
441
441
|
end
|
442
442
|
|
data/lib/logster/version.rb
CHANGED
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.11.
|
4
|
+
version: 2.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|