lager 1.0.0.3 → 1.1.0.1
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.
- 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
|
|