killbill 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS +4 -0
- data/VERSION +1 -1
- data/lib/killbill/gen/api/enumerator_iterator.rb +2 -2
- data/lib/killbill/killbill_logger.rb +11 -4
- metadata +1 -1
data/NEWS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.1
|
@@ -4,8 +4,13 @@
|
|
4
4
|
module Killbill
|
5
5
|
module Plugin
|
6
6
|
class KillbillLogger
|
7
|
+
|
8
|
+
attr_accessor :log_level
|
9
|
+
|
7
10
|
def initialize(delegate)
|
8
11
|
@logger = delegate
|
12
|
+
# Match Logger levels
|
13
|
+
@log_level = 1 # Logger::INFO
|
9
14
|
end
|
10
15
|
|
11
16
|
def debug(message, &block)
|
@@ -47,17 +52,19 @@ module Killbill
|
|
47
52
|
|
48
53
|
alias_method :fatal, :error
|
49
54
|
|
50
|
-
# XXX TODO
|
51
55
|
def debug?
|
52
|
-
|
56
|
+
# Logger::DEBUG
|
57
|
+
0 >= @log_level
|
53
58
|
end
|
54
59
|
|
55
60
|
def info?
|
56
|
-
|
61
|
+
# Logger::INFO
|
62
|
+
1 >= @log_level
|
57
63
|
end
|
58
64
|
|
59
65
|
def warn?
|
60
|
-
|
66
|
+
# Logger::WARN
|
67
|
+
2 >= @log_level
|
61
68
|
end
|
62
69
|
|
63
70
|
alias_method :error?, :warn?
|