console 1.15.1 → 1.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/console/compatible/logger.rb +10 -6
- data/lib/console/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '07853910049e6c4b4412a73df16de18a7cf0887acff4fe36ec08cd00cd106370'
|
4
|
+
data.tar.gz: a83887255288e5174827784e45929d384e8f7b1c3f98e3c5d8234a8348c1da7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8a9db4ebbd0ac263ae8e9081698bea9e8ed67af699de82eb5ff860f369c0c074049af827b207c62724cb4518be1b761c78142784f55023abf660a0c0f8c9cda
|
7
|
+
data.tar.gz: 1d2435e602df0b8992e5de30d6cf0a9f2784faab165b437c40fe3a86eb16d17b1e246ebc5a70962da6f7b70bf5ce3bd43f6685e8bb1be81700bb2c7dbb1bdb0c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -50,20 +50,20 @@ module Console
|
|
50
50
|
super(nil)
|
51
51
|
|
52
52
|
@progname = subject
|
53
|
-
@logdev = LogDevice.new(
|
53
|
+
@logdev = LogDevice.new(subject, output)
|
54
54
|
end
|
55
55
|
|
56
56
|
def add(severity, message = nil, progname = nil)
|
57
57
|
severity ||= UNKNOWN
|
58
|
-
|
58
|
+
|
59
59
|
if @logdev.nil? or severity < level
|
60
60
|
return true
|
61
61
|
end
|
62
|
-
|
62
|
+
|
63
63
|
if progname.nil?
|
64
64
|
progname = @progname
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
if message.nil?
|
68
68
|
if block_given?
|
69
69
|
message = yield
|
@@ -72,14 +72,18 @@ module Console
|
|
72
72
|
progname = @progname
|
73
73
|
end
|
74
74
|
end
|
75
|
-
|
75
|
+
|
76
76
|
@logdev.call(
|
77
77
|
progname, message,
|
78
78
|
severity: format_severity(severity)
|
79
79
|
)
|
80
|
-
|
80
|
+
|
81
81
|
return true
|
82
82
|
end
|
83
|
+
|
84
|
+
def format_severity(value)
|
85
|
+
super.downcase
|
86
|
+
end
|
83
87
|
end
|
84
88
|
end
|
85
89
|
end
|
data/lib/console/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|