lager 1.0.0.3 → 1.1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/lager.rb +1 -5
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0.1
|
data/lib/lager.rb
CHANGED
@@ -67,12 +67,8 @@ module Lager
|
|
67
67
|
# call with argument to set the log level
|
68
68
|
# :debug, 'debug', and Logger::DEBUG (0) are all supported
|
69
69
|
#
|
70
|
-
def log_level
|
70
|
+
def log_level
|
71
71
|
raise "no @lager available" unless defined?(@lager)
|
72
|
-
if level
|
73
|
-
@lager.warn { "passing an argument to log_level is deprecated" }
|
74
|
-
return self.log_level = level
|
75
|
-
end
|
76
72
|
[:debug, :info, :warn, :error, :fatal][@lager.level] || :unknown
|
77
73
|
end
|
78
74
|
|