ezlog 0.5.3 → 0.6.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 +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/ezlog/railtie.rb +5 -2
- data/lib/ezlog/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: 1c262ec657610e6e59eaa38fca73bfd01ef5c8e9107ad1d45d7fcd652fe202ad
|
|
4
|
+
data.tar.gz: eb01c4eebdf823979a4184dfb2ef07b63e66f12e3bc65497714f1a94bb348a06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdb2c08f48096b08524b8b40a9f88f868d2b376356d14b5d8bc7e45fa6b6f0cb412f95cc1a4a4be613d041ab518c1128be66871307b71503661e8ff86d7914a4
|
|
7
|
+
data.tar.gz: 22341fd2d610f7e373dc2fa30eb02a9d2bab28bc140bc5c9f25ccaeff175684a7a93afd9f7b2ea948cf13ac956fbd146f7d272ef45d8e780aae3342b8cffb994
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### 0.6.0 (2019-11-29)
|
|
2
|
+
|
|
3
|
+
[Full Changelog](https://github.com/emartech/ezlog/compare/v0.5.3...v0.6.0)
|
|
4
|
+
|
|
5
|
+
* Features & enhancements
|
|
6
|
+
* Disabled [Sequel](https://sequel.jeremyevans.net/) logging by default. It can be enabled with the
|
|
7
|
+
`enable_sequel_logging` config switch.
|
|
8
|
+
|
|
1
9
|
### 0.5.3 (2019-10-29)
|
|
2
10
|
|
|
3
11
|
[Full Changelog](https://github.com/emartech/ezlog/compare/v0.5.2...v0.5.3)
|
|
@@ -40,7 +48,7 @@
|
|
|
40
48
|
* Features & enhancements
|
|
41
49
|
* Added log context management methods `within_log_context` and `add_to_log_context` to Ezlog module.
|
|
42
50
|
* Replaced ActiveRecord query logging with a log subscriber that logs queries via Ezlog.
|
|
43
|
-
* Added automatic query logging (at DEBUG level) to Sequel connections.
|
|
51
|
+
* Added automatic query logging (at DEBUG level) to [Sequel](https://sequel.jeremyevans.net/) connections.
|
|
44
52
|
|
|
45
53
|
* Bug fixes
|
|
46
54
|
* ActionDispatch::DebugExceptions is no longer replaced because other gems
|
data/lib/ezlog/railtie.rb
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
module Ezlog
|
|
2
2
|
class Railtie < Rails::Railtie
|
|
3
|
+
config.ezlog = ActiveSupport::OrderedOptions.new
|
|
4
|
+
config.ezlog.enable_sequel_logging = false
|
|
5
|
+
|
|
3
6
|
initializer "ezlog.initialize" do
|
|
4
7
|
require "ezlog/rails/extensions"
|
|
5
8
|
end
|
|
@@ -13,8 +16,8 @@ module Ezlog
|
|
|
13
16
|
initialize_sidekiq_logging(app) if defined? ::Sidekiq
|
|
14
17
|
end
|
|
15
18
|
|
|
16
|
-
initializer 'ezlog.configure_sequel' do
|
|
17
|
-
::Sequel::Database.extension :ezlog_logging if defined?
|
|
19
|
+
initializer 'ezlog.configure_sequel' do |app|
|
|
20
|
+
::Sequel::Database.extension :ezlog_logging if defined?(::Sequel) && app.config.ezlog.enable_sequel_logging
|
|
18
21
|
end
|
|
19
22
|
|
|
20
23
|
initializer 'ezlog.configure_rack_timeout' do
|
data/lib/ezlog/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ezlog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zoltan Ormandi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: logging
|