openhab-scripting 4.32.1 → 4.32.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openhab/log/logger.rb +12 -3
- data/lib/openhab/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: 8d988eed567dd4fb75d8f43550f005cc1e09264310157c6ec7f267f82d68f6af
|
4
|
+
data.tar.gz: f790a909228f3671204fe6e00c27064ee25ab69154f4b54a21efe233d36d6b2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf7f712761e6b051f674c0709abba39f13ca3cbc52db417cb7a5c40f013425f860b52bd8ff840f1bb60a81cbda845899c348a9da2045ad0b0480816e70478f4d
|
7
|
+
data.tar.gz: 9c40d8bb624713aba27f93edc5c0dac12d003c14d3db47a37715954b7c788cf0d0f195e32797cd3a454eb984d57a05eb650660e585f476aff7ded57c4e6c5fff
|
data/lib/openhab/log/logger.rb
CHANGED
@@ -8,7 +8,8 @@ module OpenHAB
|
|
8
8
|
#
|
9
9
|
# Provides access to the OpenHAB logging using a Ruby logging methods
|
10
10
|
#
|
11
|
-
|
11
|
+
|
12
|
+
module Core
|
12
13
|
#
|
13
14
|
# Ruby Logger that forwards messages at appropriate levels to OpenHAB Logger
|
14
15
|
#
|
@@ -105,7 +106,9 @@ module OpenHAB
|
|
105
106
|
#
|
106
107
|
def log_exception(exception, rule_name)
|
107
108
|
exception = clean_backtrace(exception)
|
108
|
-
error
|
109
|
+
error do
|
110
|
+
"#{exception.message} (#{exception.class})\nIn rule: #{rule_name}\n#{exception.backtrace&.join("\n")}"
|
111
|
+
end
|
109
112
|
end
|
110
113
|
|
111
114
|
private
|
@@ -152,6 +155,12 @@ module OpenHAB
|
|
152
155
|
end
|
153
156
|
end
|
154
157
|
end
|
158
|
+
end
|
159
|
+
|
160
|
+
module Log
|
161
|
+
#
|
162
|
+
# Ruby Logger that forwards messages at appropriate levels to OpenHAB Logger
|
163
|
+
#
|
155
164
|
|
156
165
|
# Logger caches
|
157
166
|
@loggers = {}
|
@@ -180,7 +189,7 @@ module OpenHAB
|
|
180
189
|
# of logger name requires lots of operations and logger
|
181
190
|
# names for some objects are specific to the class
|
182
191
|
logger_name = logger_name(object)
|
183
|
-
@loggers[logger_name] ||= Logger.new(logger_name)
|
192
|
+
@loggers[logger_name] ||= OpenHAB::Core::Logger.new(logger_name)
|
184
193
|
end
|
185
194
|
|
186
195
|
private
|
data/lib/openhab/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openhab-scripting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.32.
|
4
|
+
version: 4.32.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian O'Connell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|