logrb 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/logrb/version.rb +1 -1
- data/lib/logrb.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d027adffc6c4761f66e8174524138ee2bab9a3ce58fe074ad15aa5fb368412a3
|
|
4
|
+
data.tar.gz: a7d28fa3c258500516a322b4bcf51eb263d08c6f0e27cff14e382b0d364627a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5b1434eb279c7f0ce562128b2ff93e5003cfee4d9f01e89d2ddbbf0792877ce89c03185b499a1b9c73e9437446a8b29cfacf935e1ab58f0673a1bd40d490054
|
|
7
|
+
data.tar.gz: 38aaad9cd6eb511a2dce961f20d4085e4158dcfa8bff591dc1924cd70382a21e0540c0c5db27cc9073b0e2f859dcff4bada0f0fa0171ce05d731f03b80dd4699
|
data/Gemfile.lock
CHANGED
data/lib/logrb/version.rb
CHANGED
data/lib/logrb.rb
CHANGED
|
@@ -223,6 +223,7 @@ class Logrb
|
|
|
223
223
|
fields.merge! @fields
|
|
224
224
|
write_output(compose_line(level, caller_meta, msg, fields))
|
|
225
225
|
if (error_message = error&.message)
|
|
226
|
+
write_output(": #{error.class.name}")
|
|
226
227
|
write_output(": #{error_message}")
|
|
227
228
|
end
|
|
228
229
|
write_output("\n")
|
|
@@ -274,6 +275,7 @@ class Logrb
|
|
|
274
275
|
}
|
|
275
276
|
|
|
276
277
|
if level == :error
|
|
278
|
+
data[:exception_class] = error.class.to_s
|
|
277
279
|
data[:exception] = error.message if error.respond_to?(:message)
|
|
278
280
|
data[:stacktrace] = backtrace(error)
|
|
279
281
|
end
|