lib/google/cloud/logging/async_writer.rb in google-cloud-logging-1.9.1 vs lib/google/cloud/logging/async_writer.rb in google-cloud-logging-1.9.2
- old
+ new
@@ -66,10 +66,13 @@
##
# @private Creates a new AsyncWriter instance.
def initialize logging, max_count: 10000, max_bytes: 10000000,
max_queue: 100, interval: 5, threads: 10,
partial_success: false
+ # init MonitorMixin
+ super()
+
@logging = logging
@max_count = max_count
@max_bytes = max_bytes
@max_queue = max_queue
@@ -82,12 +85,9 @@
@cond = new_cond
# Make sure all buffered messages are sent when process exits.
at_exit { stop }
-
- # init MonitorMixin
- super()
end
##
# Asynchronously write one or more log entries to the Stackdriver
# Logging service.