extended_logger 0.2.3 → 0.2.4

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
  SHA1:
3
- metadata.gz: 34905e5b7afd1bdc2b7a7fde111723e8d972a6a7
4
- data.tar.gz: eabff68e51ae3338f2b64ab2d711051caab72c58
3
+ metadata.gz: 8f9801ab1193feb987453c6f64c70240f9c634b2
4
+ data.tar.gz: 04fe0f1a914a80e25bf42591fe93089dbeee0bf4
5
5
  SHA512:
6
- metadata.gz: abd972700f05225b5583cee74cffe6df4d6850d74891f6fa81524f51572baefbd8d2ab797bdc2a5affc952779aa5a05aa509c82236c15232684128bf9e07cb07
7
- data.tar.gz: f708666b3eb1a618c8b63b9a9f3d9a1e17569b5da3a5a022a608d6ca6f8d2de7b1028b7e201ea13698ee8e84432a5e1da0c85f2d9d7092d7c379835166ebcca6
6
+ metadata.gz: cda9e4fd782929e3bf9792a8ddd720419204d34f815ad799c922af23e969ac85492b5291bdb3d7a12a9cc540d43d916e98609d729dff866ff922a35ee6223760
7
+ data.tar.gz: 4370a4e3c0dc7b4da89fe1a8bdd61f2ff40c4af6356540a84646c342c82ff54e02678d7f8da87eba041435e25ef6da3b2df0c168af2ee20ebff611c75d8bdc99
@@ -50,10 +50,16 @@ class ExtendedLogger
50
50
  def level
51
51
  level = ENV['LOG_LEVEL'] || @level
52
52
 
53
- if level
54
- level , _ = ExtendedLogger.levels.rassoc level.upcase
55
- level
53
+ return unless level
54
+
55
+ begin
56
+ relative_level = Integer(level)
57
+ return relative_level
58
+ rescue ArgumentError
56
59
  end
60
+
61
+ level , _ = ExtendedLogger.levels.rassoc level.upcase
62
+ level
57
63
  end
58
64
  end
59
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extended_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  extended-logger provides a richer logger implementation than the built in ruby