rails_semantic_logger 4.18.0 → 4.19.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce106635bd9397c23bea233bc0bf69fd1e1e4fad2b4bbb28df80c1d29d25a8e4
|
|
4
|
+
data.tar.gz: 1690e46c1ae45b6a9846e6deff99338797a2a85f5088138465de58ee99dcefe1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed31c93a5312ef92bf632167e3e58c5cb421cfbe623b9af95c7119e1d88259938cee6b1870d956733002536fa154b20ff69813e5d7c86bfaa6e508feb121d551
|
|
7
|
+
data.tar.gz: e2aa37e8f1203cd9910ae9550fa9d60211c341b36f8b5e5b13e777f7dc9ec0361dd21adbdc4b560ffd8ba3f12e0eb1791da485ab01401f6784ff90ba25204fbb
|
|
@@ -2,17 +2,24 @@ module RailsSemanticLogger
|
|
|
2
2
|
module ActiveRecord
|
|
3
3
|
class LogSubscriber < ActiveSupport::LogSubscriber
|
|
4
4
|
IGNORE_PAYLOAD_NAMES = %w[SCHEMA EXPLAIN].freeze
|
|
5
|
+
RAILS_VERSION_ENDING_SET_RUNTIME_SUPPORT = Gem::Version.new( "8.0.3")
|
|
5
6
|
|
|
6
7
|
class << self
|
|
7
8
|
attr_reader :logger
|
|
8
9
|
end
|
|
9
10
|
|
|
10
11
|
def self.runtime=(value)
|
|
11
|
-
|
|
12
|
+
return if Rails.version >= RAILS_VERSION_ENDING_SET_RUNTIME_SUPPORT
|
|
13
|
+
|
|
14
|
+
::ActiveRecord::RuntimeRegistry.respond_to?(:stats) ?
|
|
15
|
+
::ActiveRecord::RuntimeRegistry.stats.sql_runtime = value :
|
|
16
|
+
::ActiveRecord::RuntimeRegistry.sql_runtime = value
|
|
12
17
|
end
|
|
13
18
|
|
|
14
19
|
def self.runtime
|
|
15
|
-
::ActiveRecord::RuntimeRegistry.
|
|
20
|
+
::ActiveRecord::RuntimeRegistry.respond_to?(:stats) ?
|
|
21
|
+
::ActiveRecord::RuntimeRegistry.stats.sql_runtime ||= 0 :
|
|
22
|
+
::ActiveRecord::RuntimeRegistry.sql_runtime ||= 0
|
|
16
23
|
end
|
|
17
24
|
|
|
18
25
|
def self.reset_runtime
|
|
@@ -204,7 +204,7 @@ module RailsSemanticLogger
|
|
|
204
204
|
RailsSemanticLogger::Rack::Logger.started_request_log_level = :info if config.rails_semantic_logger.started
|
|
205
205
|
|
|
206
206
|
# Silence asset logging by applying a filter to the Rails logger itself, not any of the appenders.
|
|
207
|
-
if config.rails_semantic_logger.quiet_assets && config.assets.prefix
|
|
207
|
+
if config.rails_semantic_logger.quiet_assets && config.respond_to?(:assets) && config.assets.prefix
|
|
208
208
|
assets_root = config.relative_url_root.to_s + config.assets.prefix
|
|
209
209
|
assets_regex = %r(\A/{0,2}#{assets_root})
|
|
210
210
|
RailsSemanticLogger::Rack::Logger.logger.filter = ->(log) { log.payload[:path] !~ assets_regex if log.payload }
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_semantic_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reid Morrison
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2025-12-09 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rack
|
|
@@ -92,7 +92,7 @@ licenses:
|
|
|
92
92
|
metadata:
|
|
93
93
|
bug_tracker_uri: https://github.com/reidmorrison/rails_semantic_logger/issues
|
|
94
94
|
documentation_uri: https://logger.rocketjob.io
|
|
95
|
-
source_code_uri: https://github.com/reidmorrison/rails_semantic_logger/tree/v4.
|
|
95
|
+
source_code_uri: https://github.com/reidmorrison/rails_semantic_logger/tree/v4.19.0
|
|
96
96
|
rubygems_mfa_required: 'true'
|
|
97
97
|
rdoc_options: []
|
|
98
98
|
require_paths:
|
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
|
-
rubygems_version: 3.6.
|
|
111
|
+
rubygems_version: 3.6.2
|
|
112
112
|
specification_version: 4
|
|
113
113
|
summary: Feature rich logging framework that replaces the Rails logger.
|
|
114
114
|
test_files: []
|