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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70a5952518934d45a8398d9021511659ed06eb3f0dbe6a0a4cef71e1c96490ef
4
- data.tar.gz: 205ab5dc95aa256b546101818473f6afb38443947d5c6d88f61a59d553d016da
3
+ metadata.gz: 1c262ec657610e6e59eaa38fca73bfd01ef5c8e9107ad1d45d7fcd652fe202ad
4
+ data.tar.gz: eb01c4eebdf823979a4184dfb2ef07b63e66f12e3bc65497714f1a94bb348a06
5
5
  SHA512:
6
- metadata.gz: e96b76504bd3e1f9d104ef1474c69d2ff0d4d23e9304a00d3b0b0e0d1c48bcb4389b17d58100d296ab580a9c463f01fcdc6082ca54aec1c9635f9d605a7d49c2
7
- data.tar.gz: eacb6c8223e4868e17635a0e3a10383dbe3a41aadf450810ff5a7ca321771a70b253b518bf77c5f4bc6073f04900211dee74f4db29490d5e0b907ebbedd50c18
6
+ metadata.gz: fdb2c08f48096b08524b8b40a9f88f868d2b376356d14b5d8bc7e45fa6b6f0cb412f95cc1a4a4be613d041ab518c1128be66871307b71503661e8ff86d7914a4
7
+ data.tar.gz: 22341fd2d610f7e373dc2fa30eb02a9d2bab28bc140bc5c9f25ccaeff175684a7a93afd9f7b2ea948cf13ac956fbd146f7d272ef45d8e780aae3342b8cffb994
@@ -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
@@ -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? ::Sequel
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
@@ -1,3 +1,3 @@
1
1
  module Ezlog
2
- VERSION = '0.5.3'
2
+ VERSION = '0.6.0'
3
3
  end
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.5.3
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-10-29 00:00:00.000000000 Z
11
+ date: 2019-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging