onlylogs 0.4.4 → 0.4.5
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.
- checksums.yaml +4 -4
- data/lib/onlylogs/http_logger.rb +3 -2
- data/lib/onlylogs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b9969627b74355a1b0c31a2314961e45ed78558c10b2c181c83c8303c4128a5
|
|
4
|
+
data.tar.gz: b01ad9a6faa8d94e982a938d8c1b7afa4e25fe277ddbd6d0468546d9c9272f64
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d40db595e6c21fdff61f5f0f0c0eef96a1be49b35bb79a0e57fc0676b9fdde401d7e644a42a9523f54a79f00150646e0413c352a774437c33e6c20f60b6ed46c
|
|
7
|
+
data.tar.gz: 433b9d90c250d86e88117f4706304a571b6f34fc72992209aab90427ebb29cc1162dcf9d09a435f23244c55f1c79f3b4fb15985c6c7e189673512587feac7940
|
data/lib/onlylogs/http_logger.rb
CHANGED
|
@@ -28,7 +28,7 @@ module Onlylogs
|
|
|
28
28
|
if @drain_url
|
|
29
29
|
start_sender
|
|
30
30
|
else
|
|
31
|
-
$stderr.puts "Onlylogs::HttpLogger error: ONLYLOGS_DRAIN_URL is not set; logger is disabled."
|
|
31
|
+
$stderr.puts "Onlylogs::HttpLogger error: ONLYLOGS_DRAIN_URL is not set; logger is disabled." # rubocop:disable Style/StderrPuts
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -45,7 +45,7 @@ module Onlylogs
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
formatted = format_message(format_severity(severity), Time.now, progname, message.to_s)
|
|
48
|
-
@queue << formatted if formatted && @drain_url
|
|
48
|
+
@queue << formatted.chomp if formatted && @drain_url
|
|
49
49
|
super
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -57,6 +57,7 @@ module Onlylogs
|
|
|
57
57
|
|
|
58
58
|
def flush
|
|
59
59
|
send_batch(drain_queue)
|
|
60
|
+
super
|
|
60
61
|
end
|
|
61
62
|
|
|
62
63
|
private
|
data/lib/onlylogs/version.rb
CHANGED