ezlog 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbc2b416fa5e9ad9fc27808ed7466061d9598d7d72cfa954111fd649c0140bac
4
- data.tar.gz: eeeeb620f0e1e621e6e87004fc4d1ea764eb1192e22ce20a71ba460ea705fc13
3
+ metadata.gz: 70a5952518934d45a8398d9021511659ed06eb3f0dbe6a0a4cef71e1c96490ef
4
+ data.tar.gz: 205ab5dc95aa256b546101818473f6afb38443947d5c6d88f61a59d553d016da
5
5
  SHA512:
6
- metadata.gz: 4b4c04947195d99f7570586ebd28e5f11206950076f9f2f0a55cdbc392afa1855db5c8fdec9e6f7cedbe8b5d57d50348b21cf965dbc0efc9323a7db1762fd81d
7
- data.tar.gz: 67567839defa31877a6d5df9600835d89bd45ae485d50e633f0ca7e3fa4f3bc27a30700a64fdf3c816c6f27a70083fe97e36520f999e11a698e4600f5d9b23f9
6
+ metadata.gz: e96b76504bd3e1f9d104ef1474c69d2ff0d4d23e9304a00d3b0b0e0d1c48bcb4389b17d58100d296ab580a9c463f01fcdc6082ca54aec1c9635f9d605a7d49c2
7
+ data.tar.gz: eacb6c8223e4868e17635a0e3a10383dbe3a41aadf450810ff5a7ca321771a70b253b518bf77c5f4bc6073f04900211dee74f4db29490d5e0b907ebbedd50c18
@@ -1,11 +1,19 @@
1
+ ### 0.5.3 (2019-10-29)
2
+
3
+ [Full Changelog](https://github.com/emartech/ezlog/compare/v0.5.2...v0.5.3)
4
+
5
+ * Features & enhancements
6
+ * Added support for the new "job-specific log level" feature in [Sidekiq 6.0.1](https://github.com/mperham/sidekiq)
7
+
1
8
  ### 0.5.2 (2019-09-27)
2
9
 
3
10
  [Full Changelog](https://github.com/emartech/ezlog/compare/v0.5.1...v0.5.2)
4
11
 
5
12
  * Bug fixes
6
- * Sidekiq logger now supports the Sidekiq 6 logger interface which includes the method `with_context`. This is
7
- important because other gems (notably [sidekiq-unique-jobs](https://github.com/mhenrixon/sidekiq-unique-jobs))
8
- depend on this method and might break if it's not present.
13
+ * [Sidekiq](https://github.com/mperham/sidekiq) logger now supports the [Sidekiq 6](https://github.com/mperham/sidekiq)
14
+ logger interface which includes the method `with_context`. This is important because other gems
15
+ (notably [sidekiq-unique-jobs](https://github.com/mhenrixon/sidekiq-unique-jobs)) depend on this method
16
+ and might break if it's not present.
9
17
 
10
18
  ### 0.5.1 (2019-09-16)
11
19
 
@@ -22,6 +22,14 @@ module Ezlog
22
22
  yield
23
23
  end
24
24
 
25
+ def prepare(job_hash, &_block)
26
+ old_log_level = logger.level
27
+ logger.level = job_hash['log_level'] || logger.level
28
+ yield
29
+ ensure
30
+ logger.level = old_log_level
31
+ end
32
+
25
33
  private
26
34
 
27
35
  def benchmark
@@ -1,3 +1,3 @@
1
1
  module Ezlog
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
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.2
4
+ version: 0.5.3
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-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging