appsignal 4.3.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/appsignal/logger.rb +10 -2
- data/lib/appsignal/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: 42879f53736b4c57af015ffd56698a8e5e7ac1d3add47169067ae464d6fecf57
|
4
|
+
data.tar.gz: ef13a0ee3e7c64243d89c48e00bb2ea4a43f43869ad5f33f47690918234cb548
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a0c12865aea57f0602ca23346deaf74a9cb0e350f45335eb3f8511a14e3e82ab3e17cd57e76bf5b567a0621232b15832cf9c89fb2355195d31db650ed84efd9
|
7
|
+
data.tar.gz: e14293ffbec48adfbd1459138e7d71f8bcbbaebc2cde6684c94b7eebd20973cae4069cc1099fc6742783e013dc41643342e9c68c36cf8841f887cfe886bb19da
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# AppSignal for Ruby gem Changelog
|
2
2
|
|
3
|
+
## 4.3.2
|
4
|
+
|
5
|
+
_Published on 2024-12-31._
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
- Fix an issue where loggers, when broadcasted to by `Appsignal::Logger#broadcast_to`, would format again messages that have already been formatted by the broadcaster, causing the resulting message emitted by the logger to contain double newlines. (patch [cd2f9fbf](https://github.com/appsignal/appsignal-ruby/commit/cd2f9fbfe31b39de90bc012ddacaaf9b28fef913))
|
10
|
+
|
3
11
|
## 4.3.1
|
4
12
|
|
5
13
|
_Published on 2024-12-20._
|
data/lib/appsignal/logger.rb
CHANGED
@@ -41,6 +41,14 @@ module Appsignal
|
|
41
41
|
@loggers = []
|
42
42
|
end
|
43
43
|
|
44
|
+
# When a formatter is set on the logger (e.g. when wrapping the logger in
|
45
|
+
# `ActiveSupport::TaggedLogging`) we want to set that formatter on all the
|
46
|
+
# loggers that are being broadcasted to.
|
47
|
+
def formatter=(formatter)
|
48
|
+
super
|
49
|
+
@loggers.each { |logger| logger.formatter = formatter }
|
50
|
+
end
|
51
|
+
|
44
52
|
# We support the various methods in the Ruby
|
45
53
|
# logger class by supplying this method.
|
46
54
|
# @api private
|
@@ -59,8 +67,6 @@ module Appsignal
|
|
59
67
|
end
|
60
68
|
return if message.nil?
|
61
69
|
|
62
|
-
message = formatter.call(severity, Time.now, group, message) if formatter
|
63
|
-
|
64
70
|
@loggers.each do |logger|
|
65
71
|
logger.add(severity, message, group)
|
66
72
|
rescue
|
@@ -74,6 +80,8 @@ module Appsignal
|
|
74
80
|
return
|
75
81
|
end
|
76
82
|
|
83
|
+
message = formatter.call(severity, Time.now, group, message) if formatter
|
84
|
+
|
77
85
|
Appsignal::Extension.log(
|
78
86
|
group,
|
79
87
|
SEVERITY_MAP.fetch(severity, 0),
|
data/lib/appsignal/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appsignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-12-
|
13
|
+
date: 2024-12-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: logger
|